pub trait RevertExt {
    // Required method
    fn map_reason(self, f: impl FnOnce(RevertReason) -> RevertReason) -> Self;
}
Expand description

Additional functions for Revert and MayRevert.

Required Methods§

source

fn map_reason(self, f: impl FnOnce(RevertReason) -> RevertReason) -> Self

Map the reason while keeping the same backtrace.

Object Safety§

This trait is not object safe.

Implementors§