Enum core::identifier::derive::digest::DigestDerivator
[−]pub enum DigestDerivator {
Blake3_256,
Blake3_512,
SHA2_256,
SHA2_512,
SHA3_256,
SHA3_512,
}
Expand description
Enumeration with digest derivator types
Variants
Blake3_256
Blake3_512
SHA2_256
SHA2_512
SHA3_256
SHA3_512
Implementations
Trait Implementations
impl BorshDeserialize for DigestDerivator
impl BorshDeserialize for DigestDerivator
fn deserialize(buf: &mut &[u8]) -> Result<DigestDerivator, Error>
fn deserialize(buf: &mut &[u8]) -> Result<DigestDerivator, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
impl BorshSerialize for DigestDerivator
impl BorshSerialize for DigestDerivator
impl Clone for DigestDerivator
impl Clone for DigestDerivator
fn clone(&self) -> DigestDerivator
fn clone(&self) -> DigestDerivator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for DigestDerivator
impl Debug for DigestDerivator
impl Derivator for DigestDerivator
impl Derivator for DigestDerivator
fn to_str(&self) -> String
fn code_len(&self) -> usize
fn derivative_len(&self) -> usize
fn material_len(&self) -> usize
impl<'de> Deserialize<'de> for DigestDerivator
impl<'de> Deserialize<'de> for DigestDerivator
fn deserialize<__D>(
__deserializer: __D
) -> Result<DigestDerivator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DigestDerivator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for DigestDerivator
impl FromStr for DigestDerivator
fn from_str(
s: &str
) -> Result<DigestDerivator, <DigestDerivator as FromStr>::Err>
fn from_str(
s: &str
) -> Result<DigestDerivator, <DigestDerivator as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreimpl Hash for DigestDerivator
impl Hash for DigestDerivator
impl PartialEq<DigestDerivator> for DigestDerivator
impl PartialEq<DigestDerivator> for DigestDerivator
fn eq(&self, other: &DigestDerivator) -> bool
fn eq(&self, other: &DigestDerivator) -> bool
impl PartialOrd<DigestDerivator> for DigestDerivator
impl PartialOrd<DigestDerivator> for DigestDerivator
fn partial_cmp(&self, other: &DigestDerivator) -> Option<Ordering>
fn partial_cmp(&self, other: &DigestDerivator) -> Option<Ordering>
1.0.0 · sourcefn 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 Serialize for DigestDerivator
impl Serialize for DigestDerivator
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 Copy for DigestDerivator
impl Eq for DigestDerivator
impl StructuralEq for DigestDerivator
impl StructuralPartialEq for DigestDerivator
Auto Trait Implementations
impl RefUnwindSafe for DigestDerivator
impl Send for DigestDerivator
impl Sync for DigestDerivator
impl Unpin for DigestDerivator
impl UnwindSafe for DigestDerivator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.