pub trait BufferRef {
// Required methods
fn len(&self) -> usize;
fn read<const N: usize>(&self, offset: usize) -> &[u8; N];
fn read_slice(&self, offset: usize, val: &mut [u8]);
}
Required Methods§
fn len(&self) -> usize
fn read<const N: usize>(&self, offset: usize) -> &[u8; N]
fn read_slice(&self, offset: usize, val: &mut [u8])
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.