pub trait ReadBytes: Send + Sync {
// Required methods
fn read(&self, range: ByteRange) -> IonResult<SourceBytes>;
fn total_len(&self) -> Option<u64>;
}Required Methods§
fn read(&self, range: ByteRange) -> IonResult<SourceBytes>
fn total_len(&self) -> Option<u64>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".