Skip to main content

ReadBytes

Trait ReadBytes 

Source
pub trait ReadBytes: Send + Sync {
    // Required methods
    fn read(&self, range: ByteRange) -> IonResult<SourceBytes>;
    fn total_len(&self) -> Option<u64>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ReadBytes for BytesSource

Source§

impl ReadBytes for CallbackSource

Source§

impl ReadBytes for FileSource

Available on not (WebAssembly and non-WASI).