pub trait Call: Sized {
// Required method
fn parse(selector: Bytes4, input: &[u8]) -> Result<Option<Self>>;
// Provided method
fn parse_full(input: &[u8]) -> Result<Option<Self>> { ... }
}
Expand description
Parseable EVM call, this trait should be implemented with solidity_interface
macro
Required Methods§
Provided Methods§
fn parse_full(input: &[u8]) -> Result<Option<Self>>
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.