Enum taple_core::identifier::derive::digest::DigestDerivator
source · pub enum DigestDerivator {
Blake3_256,
Blake3_512,
SHA2_256,
SHA2_512,
SHA3_256,
SHA3_512,
}
Expand description
Enumeration with digest derivator types
Variants§
Implementations§
Trait Implementations§
source§impl BorshDeserialize for DigestDerivator
impl BorshDeserialize for DigestDerivator
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§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.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for DigestDerivator
impl BorshSerialize for DigestDerivator
source§impl Clone for DigestDerivator
impl Clone for DigestDerivator
source§fn clone(&self) -> DigestDerivator
fn clone(&self) -> DigestDerivator
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 DigestDerivator
impl Debug for DigestDerivator
source§impl Derivator for DigestDerivator
impl Derivator for DigestDerivator
source§impl<'de> Deserialize<'de> for DigestDerivator
impl<'de> Deserialize<'de> for DigestDerivator
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 EnumExt for DigestDerivator
impl EnumExt for DigestDerivator
source§impl From<DigestDerivator> for Value
impl From<DigestDerivator> for Value
source§fn from(data: DigestDerivator) -> Self
fn from(data: DigestDerivator) -> Self
Converts to this type from the input type.
source§impl FromStr for DigestDerivator
impl FromStr for DigestDerivator
source§impl Hash for DigestDerivator
impl Hash for DigestDerivator
source§impl PartialEq<DigestDerivator> for DigestDerivator
impl PartialEq<DigestDerivator> for DigestDerivator
source§fn eq(&self, other: &DigestDerivator) -> bool
fn eq(&self, other: &DigestDerivator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DigestDerivator> for DigestDerivator
impl PartialOrd<DigestDerivator> for DigestDerivator
source§fn partial_cmp(&self, other: &DigestDerivator) -> Option<Ordering>
fn partial_cmp(&self, other: &DigestDerivator) -> 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 moresource§impl Serialize for DigestDerivator
impl Serialize for DigestDerivator
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§
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.