pub struct Sha256Digest(/* private fields */);Expand description
A SHA256 digest (32 bytes).
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for Sha256Digest
impl AsRef<[u8]> for Sha256Digest
Source§impl Clone for Sha256Digest
impl Clone for Sha256Digest
impl Copy for Sha256Digest
Source§impl Debug for Sha256Digest
impl Debug for Sha256Digest
Source§impl<'de> Deserialize<'de> for Sha256Digest
impl<'de> Deserialize<'de> for Sha256Digest
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 Display for Sha256Digest
impl Display for Sha256Digest
impl Eq for Sha256Digest
Source§impl From<Sha256Digest> for [u8; 32]
impl From<Sha256Digest> for [u8; 32]
Source§fn from(digest: Sha256Digest) -> Self
fn from(digest: Sha256Digest) -> Self
Converts to this type from the input type.
Source§impl FromStr for Sha256Digest
impl FromStr for Sha256Digest
Source§impl Hash for Sha256Digest
impl Hash for Sha256Digest
Source§impl Ord for Sha256Digest
impl Ord for Sha256Digest
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Sha256Digest
impl PartialEq for Sha256Digest
Source§impl PartialOrd for Sha256Digest
impl PartialOrd for Sha256Digest
Source§impl Serialize for Sha256Digest
impl Serialize for Sha256Digest
impl StructuralPartialEq for Sha256Digest
Auto Trait Implementations§
impl Freeze for Sha256Digest
impl RefUnwindSafe for Sha256Digest
impl Send for Sha256Digest
impl Sync for Sha256Digest
impl Unpin for Sha256Digest
impl UnsafeUnpin for Sha256Digest
impl UnwindSafe for Sha256Digest
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ToHex for T
impl<T> ToHex for T
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)