pub trait ByteArray {
type Target;
// Required methods
fn capacity(&self) -> usize;
fn slice(&self) -> &[u8] ⓘ;
fn mut_slice(&mut self) -> &mut [u8] ⓘ;
// Provided method
fn zero(&mut self) { ... }
}Expand description
A trait for types that represent byte arrays.