pub struct HashOutput(/* private fields */);Expand description
Output of a hash function.
Implementations§
Source§impl HashOutput
impl HashOutput
Sourcepub fn from_array<const N: usize>(arr: [u8; N]) -> Self
pub fn from_array<const N: usize>(arr: [u8; N]) -> Self
Create from a fixed-size array.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Consume and return bytes.
Trait Implementations§
Source§impl AsRef<[u8]> for HashOutput
impl AsRef<[u8]> for HashOutput
Source§impl Clone for HashOutput
impl Clone for HashOutput
Source§fn clone(&self) -> HashOutput
fn clone(&self) -> HashOutput
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 moreSource§impl Debug for HashOutput
impl Debug for HashOutput
Source§impl<'de> Deserialize<'de> for HashOutput
impl<'de> Deserialize<'de> for HashOutput
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 HashOutput
impl Display for HashOutput
Source§impl Hash for HashOutput
impl Hash for HashOutput
Source§impl PartialEq for HashOutput
impl PartialEq for HashOutput
Source§impl Serialize for HashOutput
impl Serialize for HashOutput
impl Eq for HashOutput
impl StructuralPartialEq for HashOutput
Auto Trait Implementations§
impl Freeze for HashOutput
impl RefUnwindSafe for HashOutput
impl Send for HashOutput
impl Sync for HashOutput
impl Unpin for HashOutput
impl UnwindSafe for HashOutput
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,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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)