[][src]Struct nom::FileProducer

pub struct FileProducer { /* fields omitted */ }

Methods

impl FileProducer[src]

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

pub fn state(&self) -> FileProducerState[src]

pub fn refill(&mut self) -> Option<usize>[src]

pub fn resize(&mut self, s: usize) -> usize[src]

Resize the internal buffer, copy the data to the new one and returned how much data was copied

If the new buffer is smaller, the prefix will be copied, and the rest of the data will be dropped

Trait Implementations

impl Debug for FileProducer[src]

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

Auto Trait Implementations

impl RefUnwindSafe for FileProducer

impl Send for FileProducer

impl Sync for FileProducer

impl Unpin for FileProducer

impl UnwindSafe for FileProducer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.