Struct nom::FileProducer [] [src]

pub struct FileProducer {
    // some fields omitted
}

Can produce data from a file

the size field is the size of v, the internal buffer

Methods

impl FileProducer
[src]

fn new(filename: &str, buffer_size: usize) -> Result<FileProducer>

Trait Implementations

impl Producer for FileProducer
[src]

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

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