pub fn trap<I, O>(result: Result<I, O>) -> Result<I, O>where
    I: InputIter,
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.