#[repr(u8)]pub enum AddressHeaderKind {
BasePaymentKeyStakeKey = 0,
BasePaymentScriptStakeKey = 1,
BasePaymentKeyStakeScript = 2,
BasePaymentScriptStakeScript = 3,
PointerKey = 4,
PointerScript = 5,
EnterpriseKey = 6,
EnterpriseScript = 7,
Byron = 8,
RewardKey = 14,
RewardScript = 15,
}Expand description
Careful: this enum doesn’t include the network ID part of the header
ex: base address isn’t 0b0000_0000 but instead 0b0000
Use header_matches_kind if you don’t want to implement the bitwise operators yourself
Variants§
BasePaymentKeyStakeKey = 0
BasePaymentScriptStakeKey = 1
BasePaymentKeyStakeScript = 2
BasePaymentScriptStakeScript = 3
PointerKey = 4
PointerScript = 5
EnterpriseKey = 6
EnterpriseScript = 7
Byron = 8
RewardKey = 14
RewardScript = 15
Trait Implementations§
Source§impl Clone for AddressHeaderKind
impl Clone for AddressHeaderKind
Source§fn clone(&self) -> AddressHeaderKind
fn clone(&self) -> AddressHeaderKind
Returns a duplicate 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 Debug for AddressHeaderKind
impl Debug for AddressHeaderKind
Source§impl Ord for AddressHeaderKind
impl Ord for AddressHeaderKind
Source§fn cmp(&self, other: &AddressHeaderKind) -> Ordering
fn cmp(&self, other: &AddressHeaderKind) -> 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 PartialEq for AddressHeaderKind
impl PartialEq for AddressHeaderKind
Source§impl PartialOrd for AddressHeaderKind
impl PartialOrd for AddressHeaderKind
impl Copy for AddressHeaderKind
impl Eq for AddressHeaderKind
impl StructuralPartialEq for AddressHeaderKind
Auto Trait Implementations§
impl Freeze for AddressHeaderKind
impl RefUnwindSafe for AddressHeaderKind
impl Send for AddressHeaderKind
impl Sync for AddressHeaderKind
impl Unpin for AddressHeaderKind
impl UnsafeUnpin for AddressHeaderKind
impl UnwindSafe for AddressHeaderKind
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