#[non_exhaustive]pub enum KnownHrp {
Mainnet,
Testnets,
Regtest,
}
Expand description
Known bech32 human-readable parts.
This is the human-readable part before the separator (1
) in a bech32 encoded address e.g.,
the “bc” in “bc1p2wsldez5mud2yam29q22wgfh9439spgduvct83k3pm50fcxa5dps59h4z5”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mainnet
The main Bitcoin network.
Testnets
The test networks, testnet (testnet3), testnet4, and signet.
Regtest
The regtest network.
Trait Implementations§
§impl Ord for KnownHrp
impl Ord for KnownHrp
§impl PartialOrd for KnownHrp
impl PartialOrd for KnownHrp
§fn partial_cmp(&self, other: &KnownHrp) -> Option<Ordering>
fn partial_cmp(&self, other: &KnownHrp) -> 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 moreimpl Copy for KnownHrp
impl Eq for KnownHrp
impl StructuralPartialEq for KnownHrp
Auto Trait Implementations§
impl Freeze for KnownHrp
impl RefUnwindSafe for KnownHrp
impl Send for KnownHrp
impl Sync for KnownHrp
impl Unpin for KnownHrp
impl UnwindSafe for KnownHrp
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more