Function abortable_parser::combinators::not [−][src]
pub fn not<I, O>(i: I, result: Result<I, O>) -> Result<I, ()> where
I: InputIter,
Turns a Result
to it's inverse.
Result::Fail
becomes Result::Complete
and Result::Complete
becomes Result::Fail
.
You must pass in an iterator at the appropriate spot for the next combinator
to start at.
The not!
macro provides syntactic sugar for using this combinator properly.