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<PubKeyOrAddress<'a>> for PubKeyOrAddress<'a>
impl<'a> PartialEq<PubKeyOrAddress<'a>> 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<PubKeyOrAddress<'a>> for PubKeyOrAddress<'a>
impl<'a> PartialOrd<PubKeyOrAddress<'a>> 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 more