Skip to main content

WriteBytes

Trait WriteBytes 

Source
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§

Source

fn write(&mut self, bytes: &[u8]) -> IonResult<()>

Source

fn patch(&mut self, at: u64, bytes: &[u8]) -> IonResult<()>

Source

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>

Source§

fn write(&mut self, bytes: &[u8]) -> IonResult<()>

Source§

fn patch(&mut self, at: u64, bytes: &[u8]) -> IonResult<()>

Source§

fn position(&mut self) -> IonResult<u64>

Implementors§

Source§

impl WriteBytes for FileWriter

Available on not (WebAssembly and non-WASI).