Function abortable_parser::combinators::trap
source · Expand description
Traps a Result::Abort
and converts it into a Result::Fail
.
This is the semantic inverse of must
.
The trap!
macro provides syntactic sugar for using this combinator.