pub struct Blake3Checksummed<T>(pub T);Expand description
Wrapper data structure that when encoded/decoded will create/check Blake3 checksum
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for Blake3Checksummed<T>
 
impl<T: Clone> Clone for Blake3Checksummed<T>
Source§fn clone(&self) -> Blake3Checksummed<T>
 
fn clone(&self) -> Blake3Checksummed<T>
Returns a copy 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<T: Debug> Debug for Blake3Checksummed<T>
 
impl<T: Debug> Debug for Blake3Checksummed<T>
Source§impl<T> Decode for Blake3Checksummed<T>where
    T: Decode,
 
impl<T> Decode for Blake3Checksummed<T>where
    T: Decode,
Source§fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
 
fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
Attempt to deserialise the value from input.
§fn decode_into<I>(
    input: &mut I,
    dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
    I: Input,
 
fn decode_into<I>(
    input: &mut I,
    dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
    I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
    I: Input,
 
fn skip<I>(input: &mut I) -> Result<(), Error>where
    I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
 
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§impl<T> Encode for Blake3Checksummed<T>where
    T: Encode,
 
impl<T> Encode for Blake3Checksummed<T>where
    T: Encode,
Source§fn size_hint(&self) -> usize
 
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<O>(&self, dest: &mut O)where
    O: Output + ?Sized,
 
fn encode_to<O>(&self, dest: &mut O)where
    O: Output + ?Sized,
Convert self to a slice and append it to the destination.
Source§fn encoded_size(&self) -> usize
 
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§fn using_encoded<R, F>(&self, f: F) -> R
 
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
impl<T> EncodeLike for Blake3Checksummed<T>where
    T: EncodeLike,
Auto Trait Implementations§
impl<T> Freeze for Blake3Checksummed<T>where
    T: Freeze,
impl<T> RefUnwindSafe for Blake3Checksummed<T>where
    T: RefUnwindSafe,
impl<T> Send for Blake3Checksummed<T>where
    T: Send,
impl<T> Sync for Blake3Checksummed<T>where
    T: Sync,
impl<T> Unpin for Blake3Checksummed<T>where
    T: Unpin,
impl<T> UnwindSafe for Blake3Checksummed<T>where
    T: UnwindSafe,
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> DecodeAll for Twhere
    T: Decode,
 
impl<T> DecodeAll for Twhere
    T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
 
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode 
Self and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
    T: Decode,
 
impl<T> DecodeLimit for Twhere
    T: Decode,
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 more