Trait advreader::block::Block

source ·
pub trait Block {
    // Required methods
    fn new(line_end: u8, skip_comments: bool) -> Box<Self>
       where Self: Sized + Send + Sync;
    fn is_block_mode(&self) -> bool;
    fn start_block(&mut self);
    fn build_result(&mut self) -> Vec<AdvReturnValue>;
    fn read_block(
        &mut self,
        item: &[u8],
        buffer: &[u8],
        itr: &mut Enumerate<Iter<'_, u8>>,
        i: usize,
        c: u8,
        line_num: &mut usize
    ) -> FnBlockReturnType;
}

Required Methods§

source

fn new(line_end: u8, skip_comments: bool) -> Box<Self>
where Self: Sized + Send + Sync,

source

fn is_block_mode(&self) -> bool

source

fn start_block(&mut self)

source

fn build_result(&mut self) -> Vec<AdvReturnValue>

source

fn read_block( &mut self, item: &[u8], buffer: &[u8], itr: &mut Enumerate<Iter<'_, u8>>, i: usize, c: u8, line_num: &mut usize ) -> FnBlockReturnType

Implementors§