Function abortable_parser::combinators::must_complete [−][src]
pub fn must_complete<I, O>(result: Result<I, O>, msg: String) -> Result<I, O> where
I: InputIter,
Turns Result::Fail
or Result::Incomplete
into Result::Abort
.
You must specify the error message to use in case the matcher is incomplete.
The must_complete! macro provides syntactic sugar for using this combinator.