Macro nom::eof [−][src]
macro_rules! eof { ($i:expr,) => { ... }; }
eof!()
returns its input if it is at the end of input data
This combinator works with the AtEof
trait that input types must implement.
If an input type's at_eof
method returns true, it means there will be no
more refills (like what happens when buffering big files).
When we're at the end of the data and at_eof
returns true, this combinator
will succeed
TODO: example