Struct HashDigest
pub struct HashDigest(/* private fields */);Expand description
A 32-byte SHA256 hash digest.
Implementations§
§impl HashDigest
impl HashDigest
pub const fn into_bytes(self) -> [u8; 32]
pub const fn into_bytes(self) -> [u8; 32]
Consume the HashDigest and return the bytes.
pub fn from_u32_be(words: [u32; 8]) -> HashDigest
pub fn from_u32_be(words: [u32; 8]) -> HashDigest
Create a HashDigest from 8 u32 words in big-endian byte order.
Trait Implementations§
§impl AsRef<[u8]> for HashDigest
impl AsRef<[u8]> for HashDigest
§impl Clone for HashDigest
impl Clone for HashDigest
§fn clone(&self) -> HashDigest
fn clone(&self) -> HashDigest
Returns a duplicate 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 more§impl Debug for HashDigest
impl Debug for HashDigest
§impl<'de> Deserialize<'de> for HashDigest
impl<'de> Deserialize<'de> for HashDigest
§fn deserialize<D>(
deserializer: D,
) -> Result<HashDigest, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<HashDigest, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for HashDigest
impl Display for HashDigest
§impl From<[u8; 32]> for HashDigest
impl From<[u8; 32]> for HashDigest
§fn from(bytes: [u8; 32]) -> HashDigest
fn from(bytes: [u8; 32]) -> HashDigest
Converts to this type from the input type.
§impl From<HashDigest> for Vec<u8>
impl From<HashDigest> for Vec<u8>
§impl FromStr for HashDigest
impl FromStr for HashDigest
§impl Hash for HashDigest
impl Hash for HashDigest
§impl Ord for HashDigest
impl Ord for HashDigest
§impl PartialEq for HashDigest
impl PartialEq for HashDigest
§impl PartialOrd for HashDigest
impl PartialOrd for HashDigest
§impl Serialize for HashDigest
impl Serialize for HashDigest
§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 TryFrom<&[u8]> for HashDigest
impl TryFrom<&[u8]> for HashDigest
§impl TryFrom<Vec<u8>> for HashDigest
impl TryFrom<Vec<u8>> for HashDigest
impl Copy for HashDigest
impl Eq for HashDigest
impl StructuralPartialEq for HashDigest
Auto Trait Implementations§
impl Freeze for HashDigest
impl RefUnwindSafe for HashDigest
impl Send for HashDigest
impl Sync for HashDigest
impl Unpin for HashDigest
impl UnwindSafe for HashDigest
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request