pub trait ErrorExt: Error {
// Required method
fn abi_encode_revert(&self) -> Bytes;
}Expand description
An extension trait for std::error::Error for ABI encoding.
Required Methods§
Sourcefn abi_encode_revert(&self) -> Bytes
fn abi_encode_revert(&self) -> Bytes
ABI-encodes the error using Revert(string).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".