precompile_utils::solidity::revert

Trait RevertExt

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§