Struct nom::FileProducer [] [src]

pub struct FileProducer {
    // some fields omitted
}

Methods

impl FileProducer
[src]

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

fn refill(&mut self) -> Option<usize>

Trait Implementations

impl Debug for FileProducer
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'x> Producer<'x, &'x [u8]Move> for FileProducer
[src]

fn apply<'a, O, E>(&'x mut self, consumer: &'a mut Consumer<&'x [u8], O, E, Move>) -> &'a ConsumerState<O, E, Move>

Applies a consumer once on the produced data, and return the consumer's state Read more

fn run<'a: 'b, O, E>(&'b mut self, consumer: &'a mut Consumer<I, O, E, M>) -> Option<&O>

Applies a consumer once on the produced data, and returns the generated value if there is one