pub struct D<const N: usize>(/* private fields */);Expand description
Generic digest implementation.
This is used to make the “real” types you’d use every day, particularly Digest. This flexibility should be somewhat helpful if Sha256 ever proves inadequate, which isn’t likely in the near future, but is plausible on a long enough timescale.
Implementations§
Trait Implementations§
Source§impl<'de, const N: usize> Deserialize<'de> for D<N>
impl<'de, const N: usize> Deserialize<'de> for D<N>
Source§fn deserialize<DE>(
deserializer: DE,
) -> Result<D<N>, <DE as Deserializer<'de>>::Error>where
DE: Deserializer<'de>,
fn deserialize<DE>(
deserializer: DE,
) -> Result<D<N>, <DE as Deserializer<'de>>::Error>where
DE: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> Serialize for D<N>
impl<const N: usize> Serialize for D<N>
Source§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<const N: usize> Copy for D<N>
impl<const N: usize> StructuralPartialEq for D<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for D<N>
impl<const N: usize> RefUnwindSafe for D<N>
impl<const N: usize> Send for D<N>
impl<const N: usize> Sync for D<N>
impl<const N: usize> Unpin for D<N>
impl<const N: usize> UnwindSafe for D<N>
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