stuckliste

Trait BlockWrite

Source
pub trait BlockWrite<C = ()> {
    // Required method
    fn write_block<W: Write + Seek>(
        &self,
        writer: W,
        blocks: &mut Blocks,
        context: &mut C,
    ) -> Result<u32, Error>;
}
Expand description

Read values into BOM blocks.

Required Methods§

Source

fn write_block<W: Write + Seek>( &self, writer: W, blocks: &mut Blocks, context: &mut C, ) -> Result<u32, Error>

Write self to a block and return its index.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<C> BlockWrite<C> for CString

Source§

fn write_block<W: Write + Seek>( &self, writer: W, blocks: &mut Blocks, _context: &mut C, ) -> Result<u32, Error>

Source§

impl<C, T: BlockWrite<C>> BlockWrite<C> for Option<T>

Source§

fn write_block<W: Write + Seek>( &self, writer: W, blocks: &mut Blocks, context: &mut C, ) -> Result<u32, Error>

Implementors§