pub trait ValueReader: Default {
type Value;
// Required methods
fn value(&self, idx: usize) -> &Self::Value;
fn load(&mut self, data: &[u8]) -> Result<usize>;
}
Expand description
ValueReader
is a trait describing the contract of something
reading blocks of value, and offering random access within this values.
Required Associated Types§
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.