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".
Implementors§
impl ReadBytes for BytesSource
impl ReadBytes for CallbackSource
impl ReadBytes for FileSource
Available on not (WebAssembly and non-WASI).