Enum offchain::identifier::HumanReadablePrefix
source · pub enum HumanReadablePrefix {
DM,
PDM,
TDM,
}Expand description
Defines the available HRPs (human readable prefix) as defined in https://dip.diem.com/dip-5/#format
Variants§
Implementations§
Trait Implementations§
source§impl Clone for HumanReadablePrefix
impl Clone for HumanReadablePrefix
source§fn clone(&self) -> HumanReadablePrefix
fn clone(&self) -> HumanReadablePrefix
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 Debug for HumanReadablePrefix
impl Debug for HumanReadablePrefix
source§impl Display for HumanReadablePrefix
impl Display for HumanReadablePrefix
source§impl FromStr for HumanReadablePrefix
impl FromStr for HumanReadablePrefix
§type Err = IntentIdentifierError
type Err = IntentIdentifierError
The associated error which can be returned from parsing.
source§impl Hash for HumanReadablePrefix
impl Hash for HumanReadablePrefix
source§impl Ord for HumanReadablePrefix
impl Ord for HumanReadablePrefix
source§fn cmp(&self, other: &HumanReadablePrefix) -> Ordering
fn cmp(&self, other: &HumanReadablePrefix) -> 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<HumanReadablePrefix> for HumanReadablePrefix
impl PartialEq<HumanReadablePrefix> for HumanReadablePrefix
source§fn eq(&self, other: &HumanReadablePrefix) -> bool
fn eq(&self, other: &HumanReadablePrefix) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<HumanReadablePrefix> for HumanReadablePrefix
impl PartialOrd<HumanReadablePrefix> for HumanReadablePrefix
source§fn partial_cmp(&self, other: &HumanReadablePrefix) -> Option<Ordering>
fn partial_cmp(&self, other: &HumanReadablePrefix) -> 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 HumanReadablePrefix
impl Eq for HumanReadablePrefix
impl StructuralEq for HumanReadablePrefix
impl StructuralPartialEq for HumanReadablePrefix
Auto Trait Implementations§
impl RefUnwindSafe for HumanReadablePrefix
impl Send for HumanReadablePrefix
impl Sync for HumanReadablePrefix
impl Unpin for HumanReadablePrefix
impl UnwindSafe for HumanReadablePrefix
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.