precompile_utils::solidity::revert

Trait InjectBacktrace

Source
pub trait InjectBacktrace {
    type Output;

    // Required methods
    fn in_field(self, field: impl Into<String>) -> Self::Output;
    fn in_tuple(self, index: usize) -> Self::Output;
    fn in_array(self, index: usize) -> Self::Output;
}
Expand description

Allows to inject backtrace data.

Required Associated Types§

Source

type Output

Output type of the injection. Should be a type that can hold a backtrace.

Required Methods§

Source

fn in_field(self, field: impl Into<String>) -> Self::Output

Occurs in a field.

Source

fn in_tuple(self, index: usize) -> Self::Output

Occurs in a tuple.

Source

fn in_array(self, index: usize) -> Self::Output

Occurs in an array at provided index.

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§