pub enum VarHash {
Sha2_256(Sha2_256),
Sha2_512(Sha2_512),
}
Expand description
One of several concrete hash types.
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for VarHash
impl<'de> Deserialize<'de> for VarHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for VarHash
impl Ord for VarHash
source§impl PartialEq<VarHash> for VarHash
impl PartialEq<VarHash> for VarHash
source§impl PartialOrd<VarHash> for VarHash
impl PartialOrd<VarHash> for VarHash
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 TryFrom<MessageDigest> for VarHash
impl TryFrom<MessageDigest> for VarHash
impl Eq for VarHash
impl StructuralEq for VarHash
impl StructuralPartialEq for VarHash
Auto Trait Implementations§
impl RefUnwindSafe for VarHash
impl Send for VarHash
impl Sync for VarHash
impl Unpin for VarHash
impl UnwindSafe for VarHash
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<T> Free for T
impl<T> Free for T
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
)