pub enum Typecode {
P2pkh,
P2sh,
Sapling,
Orchard,
Unknown(u32),
}
Expand description
The known Receiver and Viewing Key types.
The typecodes 0xFFFA..=0xFFFF
reserved for experiments are currently not
distinguished from unknown values, and will be parsed as Typecode::Unknown
.
Variants§
P2pkh
A transparent P2PKH address, FVK, or IVK encoding as specified in ZIP 316.
P2sh
Sapling
A Sapling raw address, FVK, or IVK encoding as specified in ZIP 316.
Orchard
An Orchard raw address, FVK, or IVK encoding as specified in ZIP 316.
Unknown(u32)
An unknown or experimental typecode.
Implementations§
Source§impl Typecode
impl Typecode
pub fn preference_order(a: &Self, b: &Self) -> Ordering
pub fn encoding_order(a: &Self, b: &Self) -> Ordering
Trait Implementations§
impl Copy for Typecode
impl Eq for Typecode
impl StructuralPartialEq for Typecode
Auto Trait Implementations§
impl Freeze for Typecode
impl RefUnwindSafe for Typecode
impl Send for Typecode
impl Sync for Typecode
impl Unpin for Typecode
impl UnwindSafe for Typecode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more