Struct nom::ReadProducer [] [src]

pub struct ReadProducer<T: Read> {
    // some fields omitted
}

Can produce data from a struct implementing Read

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

Methods

impl<T: Read> ReadProducer<T>

fn new(reader: T, buffer_size: usize) -> ReadProducer<T>

Trait Implementations

impl<T: Read> Producer for ReadProducer<T>

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

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