pub trait AltRawData: AltrepLen {
// Required method
fn elt(&self, i: usize) -> u8;
// Provided methods
fn as_slice(&self) -> Option<&[u8]> { ... }
fn get_region(&self, start: usize, len: usize, buf: &mut [u8]) -> usize { ... }
}Expand description
Trait for types that can back an ALTRAW vector.
Required Methods§
Provided Methods§
Sourcefn get_region(&self, start: usize, len: usize, buf: &mut [u8]) -> usize
fn get_region(&self, start: usize, len: usize, buf: &mut [u8]) -> usize
Optional: bulk read into buffer (clamped to available data).
Same contract and override guidance as
AltIntegerData::get_region.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".