pub enum PubKeyOrAddress<'a> {
Address(&'a Address),
PubKey(&'a PublicKey),
}
Expand description
Used to represent arguments that can either be an address or a public key.
Variants§
Trait Implementations§
source§impl<'a> Clone for PubKeyOrAddress<'a>
impl<'a> Clone for PubKeyOrAddress<'a>
source§fn clone(&self) -> PubKeyOrAddress<'a>
fn clone(&self) -> PubKeyOrAddress<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for PubKeyOrAddress<'a>
impl<'a> Debug for PubKeyOrAddress<'a>
source§impl<'a> Ord for PubKeyOrAddress<'a>
impl<'a> Ord for PubKeyOrAddress<'a>
source§fn cmp(&self, other: &PubKeyOrAddress<'a>) -> Ordering
fn cmp(&self, other: &PubKeyOrAddress<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for PubKeyOrAddress<'a>
impl<'a> PartialEq for PubKeyOrAddress<'a>
source§fn eq(&self, other: &PubKeyOrAddress<'a>) -> bool
fn eq(&self, other: &PubKeyOrAddress<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for PubKeyOrAddress<'a>
impl<'a> PartialOrd for PubKeyOrAddress<'a>
source§fn partial_cmp(&self, other: &PubKeyOrAddress<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PubKeyOrAddress<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Serialize for PubKeyOrAddress<'a>
impl<'a> Serialize for PubKeyOrAddress<'a>
impl<'a> Eq for PubKeyOrAddress<'a>
impl<'a> StructuralPartialEq for PubKeyOrAddress<'a>
Auto Trait Implementations§
impl<'a> Freeze for PubKeyOrAddress<'a>
impl<'a> RefUnwindSafe for PubKeyOrAddress<'a>
impl<'a> Send for PubKeyOrAddress<'a>
impl<'a> Sync for PubKeyOrAddress<'a>
impl<'a> Unpin for PubKeyOrAddress<'a>
impl<'a> UnwindSafe for PubKeyOrAddress<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more