pub trait Digest<const S: usize>:
AsRef<[u8]>
+ AsMut<[u8]>
+ From<[u8; S]>
+ Into<[u8; S]>
+ Clone
+ Hash
+ Debug
+ Default
+ Eq
+ Send
+ Sync
+ 'static {
const SIZE: usize = S;
// Provided method
fn wrap(digest: &[u8]) -> Result<Self, Error> { ... }
}
Expand description
Size marker trait. Stack allocated digest trait.
Provided Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.