pub trait ByteArray:
ByteArray
+ IndexMut<usize, Output = u8>
+ IndexMut<Range<usize>, Output = [u8]>
+ AsRef<[u8]>
+ AsMut<[u8]> {
const SIZE: usize;
// Required method
fn zeroed() -> Self;
}Expand description
A helper trait that is implemented only for byte arrays.
It is necessary since associated constants cannot be used in function signatures so far.
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.