pub struct Sha2_256(_);
Expand description
Represents the SHA2-256 hash algorithm.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sha2_256
impl<'de> Deserialize<'de> for Sha2_256
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 From<DigestBytes> for Sha2_256
impl From<DigestBytes> for Sha2_256
source§fn from(value: DigestBytes) -> Self
fn from(value: DigestBytes) -> Self
Converts to this type from the input type.
source§impl Hash for Sha2_256
impl Hash for Sha2_256
§type Op = OsslHashOp<Sha2_256>
type Op = OsslHashOp<Sha2_256>
The hash operation associated with this
Hash
.source§impl Ord for Sha2_256
impl Ord for Sha2_256
source§impl PartialEq<Sha2_256> for Sha2_256
impl PartialEq<Sha2_256> for Sha2_256
source§impl PartialOrd<Sha2_256> for Sha2_256
impl PartialOrd<Sha2_256> for Sha2_256
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 Eq for Sha2_256
impl StructuralEq for Sha2_256
impl StructuralPartialEq for Sha2_256
Auto Trait Implementations§
impl RefUnwindSafe for Sha2_256
impl Send for Sha2_256
impl Sync for Sha2_256
impl Unpin for Sha2_256
impl UnwindSafe for Sha2_256
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
)