pub trait Packed:
Copy
+ Sized
+ AsRef<[u8]>
+ AsMut<[u8]>
+ IndexMut<usize, Output = u8>
+ for<'a> TryFrom<&'a [u8]> {
const LENGTH: usize;
// Required method
fn zero() -> Self;
}
Expand description
A byte slice (e.g. [u8; 8]
) denoting types that represent complete packs.
Required Associated Constants§
Required 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.