pub trait Chunk<'source>: Sized + Copy + PartialEq + Eq {
const SIZE: usize;
// Required method
unsafe fn from_ptr(ptr: *const u8) -> Self;
}Expand description
A fixed, statically sized chunk of data that can be read from the Source.
This is implemented for u8, as well as byte arrays &[u8; 1] to &[u8; 32].
Required Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.