pub struct Label<Storage>(/* private fields */)
where
Storage: AsRef<[u8]>;Expand description
For labeled HashTreeNode
Implementations§
source§impl<Storage> Label<Storage>where
Storage: AsRef<[u8]>,
impl<Storage> Label<Storage>where Storage: AsRef<[u8]>,
Trait Implementations§
source§impl<'de, Storage> Deserialize<'de> for Label<Storage>where
Storage: AsRef<[u8]> + Deserialize<'de>,
impl<'de, Storage> Deserialize<'de> for Label<Storage>where Storage: AsRef<[u8]> + Deserialize<'de>,
source§fn deserialize<D>(
deserializer: D
) -> Result<Label<Storage>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Label<Storage>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Storage> Ord for Label<Storage>where
Storage: Ord + AsRef<[u8]>,
impl<Storage> Ord for Label<Storage>where Storage: Ord + AsRef<[u8]>,
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<Storage> PartialEq<Label<Storage>> for Label<Storage>where
Storage: PartialEq<Storage> + AsRef<[u8]>,
impl<Storage> PartialEq<Label<Storage>> for Label<Storage>where Storage: PartialEq<Storage> + AsRef<[u8]>,
source§impl<Storage> PartialOrd<Label<Storage>> for Label<Storage>where
Storage: PartialOrd<Storage> + AsRef<[u8]>,
impl<Storage> PartialOrd<Label<Storage>> for Label<Storage>where Storage: PartialOrd<Storage> + AsRef<[u8]>,
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 moresource§impl<Storage> Serialize for Label<Storage>where
Storage: AsRef<[u8]>,
impl<Storage> Serialize for Label<Storage>where Storage: AsRef<[u8]>,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<Storage> Eq for Label<Storage>where Storage: Eq + AsRef<[u8]>,
impl<Storage> StructuralEq for Label<Storage>where Storage: AsRef<[u8]>,
impl<Storage> StructuralPartialEq for Label<Storage>where Storage: AsRef<[u8]>,
Auto Trait Implementations§
impl<Storage> RefUnwindSafe for Label<Storage>where Storage: RefUnwindSafe,
impl<Storage> Send for Label<Storage>where Storage: Send,
impl<Storage> Sync for Label<Storage>where Storage: Sync,
impl<Storage> Unpin for Label<Storage>where Storage: Unpin,
impl<Storage> UnwindSafe for Label<Storage>where Storage: UnwindSafe,
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<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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)