Trait hff_std::Writer

source ·
pub trait Writer {
    // Required methods
    fn write<E: ByteOrder>(
        self,
        content_type: impl Into<Ecc>,
        writer: &mut dyn Write
    ) -> Result<()>;
    fn lazy_write<E: ByteOrder>(
        self,
        content_type: impl Into<Ecc>,
        writer: &mut dyn WriteSeek
    ) -> Result<()>;
}
Expand description

Writer trait for HffDesc.

Required Methods§

source

fn write<E: ByteOrder>( self, content_type: impl Into<Ecc>, writer: &mut dyn Write ) -> Result<()>

Write to a stream.

source

fn lazy_write<E: ByteOrder>( self, content_type: impl Into<Ecc>, writer: &mut dyn WriteSeek ) -> Result<()>

Write to a stream but finalize chunk lazilly during the write. This requires a stream with both Write and Seek capabilities.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Writer for HffDesc<'a>