Trait digest::OutputSizeUser
source · pub trait OutputSizeUser {
type OutputSize: ArrayLength<u8> + 'static;
// Provided method
fn output_size() -> usize { ... }
}
Expand description
Types which return data with the given size.
Required Associated Types§
sourcetype OutputSize: ArrayLength<u8> + 'static
type OutputSize: ArrayLength<u8> + 'static
Size of the output in bytes.
Provided Methods§
sourcefn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Object Safety§
This trait is not object safe.
Implementors§
source§impl<T> OutputSizeUser for CoreWrapper<T>where
T: BufferKindUser + OutputSizeUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Available on crate feature core-api
only.
impl<T> OutputSizeUser for CoreWrapper<T>where
T: BufferKindUser + OutputSizeUser,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Available on crate feature
core-api
only.type OutputSize = <T as OutputSizeUser>::OutputSize
source§impl<T, OutSize, O> OutputSizeUser for CtVariableCoreWrapper<T, OutSize, O>where
T: VariableOutputCore,
OutSize: ArrayLength<u8> + IsLessOrEqual<T::OutputSize> + 'static,
LeEq<OutSize, T::OutputSize>: NonZero,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Available on crate feature core-api
only.
impl<T, OutSize, O> OutputSizeUser for CtVariableCoreWrapper<T, OutSize, O>where
T: VariableOutputCore,
OutSize: ArrayLength<u8> + IsLessOrEqual<T::OutputSize> + 'static,
LeEq<OutSize, T::OutputSize>: NonZero,
T::BlockSize: IsLess<U256>,
Le<T::BlockSize, U256>: NonZero,
Available on crate feature
core-api
only.