[][src]Trait nom::AtEof

pub trait AtEof {
    fn at_eof(&self) -> bool;
}

indicates whether more data can come later in input

When working with complete data, like a file that was entirely loaded in memory, you should use input types like CompleteByteSlice and CompleteStr to wrap the data. The at_eof method of those types always returns true, thus indicating to nom that it should not handle partial data cases.

When working will partial data, like data coming from the network in buffers, the at_eof method can indicate if we expect more data to come, and let nom know that some parsers could still handle more data

Required methods

fn at_eof(&self) -> bool

Loading content...

Implementations on Foreign Types

impl<I: AtEof, T> AtEof for (I, T)[src]

impl<'a, T> AtEof for &'a [T][src]

impl<'a> AtEof for &'a str[src]

Loading content...

Implementors

impl<'a> AtEof for CompleteByteSlice<'a>[src]

impl<'a> AtEof for CompleteStr<'a>[src]

impl<T> AtEof for Input<T>[src]

Loading content...