Trait hemtt_config::Rapify

source ·
pub trait Rapify {
    // Required methods
    fn rapify<O: Write>(
        &self,
        output: &mut O,
        offset: usize
    ) -> Result<usize, Error>;
    fn rapified_length(&self) -> usize;

    // Provided method
    fn rapified_code(&self) -> Option<u8> { ... }
}
Expand description

Trait for rapifying objects

Required Methods§

source

fn rapify<O: Write>( &self, output: &mut O, offset: usize ) -> Result<usize, Error>

Rapify the object into the output stream

Errors

if the output stream fails

source

fn rapified_length(&self) -> usize

Get the length of the rapified object

Provided Methods§

source

fn rapified_code(&self) -> Option<u8>

Get the rapified element code

Implementors§