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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".