Struct nom::MemProducer [] [src]

pub struct MemProducer<'x> {
    // some fields omitted
}

Can parse data from an already in memory byte array

Methods

impl<'x> MemProducer<'x>

fn new(buffer: &'x [u8], chunk_size: usize) -> MemProducer

Trait Implementations

impl<'x> Producer for MemProducer<'x>

fn produce(&mut self) -> ProducerState<&[u8]>

fn seek(&mut self, position: SeekFrom) -> Option<u64>