Struct digest::core_api::CoreWrapper [−][src]
pub struct CoreWrapper<T> where
T: BufferKindUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero, { /* fields omitted */ }
core-api
only.Expand description
Wrapper around BufferKindUser
.
It handles data buffering and implements the slice-based traits.
Implementations
impl<T> CoreWrapper<T> where
T: BufferKindUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> CoreWrapper<T> where
T: BufferKindUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Trait Implementations
impl<T> BlockSizeUser for CoreWrapper<T> where
T: BufferKindUser + HashMarker,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> BlockSizeUser for CoreWrapper<T> where
T: BufferKindUser + HashMarker,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
fn clone(&self) -> CoreWrapper<T>ⓘNotable traits for CoreWrapper<T>impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
fn clone(&self) -> CoreWrapper<T>ⓘNotable traits for CoreWrapper<T>impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
type Core = T
type Core = T
Type wrapped by CoreWrapper
.
impl<T> Debug for CoreWrapper<T> where
T: BufferKindUser + AlgorithmName,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> Debug for CoreWrapper<T> where
T: BufferKindUser + AlgorithmName,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
fn default() -> CoreWrapper<T>ⓘNotable traits for CoreWrapper<T>impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
fn default() -> CoreWrapper<T>ⓘNotable traits for CoreWrapper<T>impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Returns the “default value” for a type. Read more
impl<T> ExtendableOutput for CoreWrapper<T> where
T: ExtendableOutputCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
<T::ReaderCore as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<T::ReaderCore as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<T> ExtendableOutput for CoreWrapper<T> where
T: ExtendableOutputCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
<T::ReaderCore as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<T::ReaderCore as BlockSizeUser>::BlockSize, U256>: NonZero,
type Reader = XofReaderCoreWrapper<T::ReaderCore>
type Reader = XofReaderCoreWrapper<T::ReaderCore>
Reader
Retrieve XOF reader and consume hasher instance.
Finalize XOF and write result into out
.
Compute hash of data
and write it into output
.
impl<T> ExtendableOutputReset for CoreWrapper<T> where
T: ExtendableOutputCore + Reset,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
<T::ReaderCore as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<T::ReaderCore as BlockSizeUser>::BlockSize, U256>: NonZero,
impl<T> ExtendableOutputReset for CoreWrapper<T> where
T: ExtendableOutputCore + Reset,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
<T::ReaderCore as BlockSizeUser>::BlockSize: IsLess<U256>,
Le<<T::ReaderCore as BlockSizeUser>::BlockSize, U256>: NonZero,
Retrieve XOF reader and reset hasher instance state.
Finalize XOF, write result into out
, and reset the hasher state.
impl<T> FixedOutput for CoreWrapper<T> where
T: FixedOutputCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> FixedOutput for CoreWrapper<T> where
T: FixedOutputCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Consume value and write result into provided array.
Retrieve result and consume the hasher instance.
impl<T> FixedOutputReset for CoreWrapper<T> where
T: FixedOutputCore + Reset,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> FixedOutputReset for CoreWrapper<T> where
T: FixedOutputCore + Reset,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Write result into provided array and reset the hasher state.
Retrieve result and reset the hasher state.
Create new value from variable size key.
impl<T> KeySizeUser for CoreWrapper<T> where
T: BufferKindUser + KeySizeUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> KeySizeUser for CoreWrapper<T> where
T: BufferKindUser + KeySizeUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> OutputSizeUser for CoreWrapper<T> where
T: BufferKindUser + OutputSizeUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> OutputSizeUser for CoreWrapper<T> where
T: BufferKindUser + OutputSizeUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
type OutputSize = T::OutputSize
type OutputSize = T::OutputSize
Size of the output in bytes.
impl<T> Update for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> Update for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
This is supported on crate feature std
only.
impl<T> Write for CoreWrapper<T> where
T: BufferKindUser + UpdateCore,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
std
only.Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
impl<T> HashMarker for CoreWrapper<T> where
T: BufferKindUser + HashMarker,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Auto Trait Implementations
impl<T> RefUnwindSafe for CoreWrapper<T> where
T: RefUnwindSafe,
<<T as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<T as BufferKindUser>::BufferKind: RefUnwindSafe,
impl<T> Send for CoreWrapper<T> where
T: Send,
<T as BufferKindUser>::BufferKind: Send,
impl<T> Sync for CoreWrapper<T> where
T: Sync,
<T as BufferKindUser>::BufferKind: Sync,
impl<T> Unpin for CoreWrapper<T> where
T: Unpin,
<<T as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
<T as BufferKindUser>::BufferKind: Unpin,
impl<T> UnwindSafe for CoreWrapper<T> where
T: UnwindSafe,
<<T as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
<T as BufferKindUser>::BufferKind: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more