pub trait WriteBytes {
// Required methods
fn write(&mut self, bytes: &[u8]) -> IonResult<()>;
fn patch(&mut self, at: u64, bytes: &[u8]) -> IonResult<()>;
fn position(&mut self) -> IonResult<u64>;
}Required Methods§
fn write(&mut self, bytes: &[u8]) -> IonResult<()>
fn patch(&mut self, at: u64, bytes: &[u8]) -> IonResult<()>
fn position(&mut self) -> IonResult<u64>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl WriteBytes for Vec<u8>
impl WriteBytes for Vec<u8>
Implementors§
impl WriteBytes for FileWriter
Available on not (WebAssembly and non-WASI).