pub trait AbiDecode: Sized {
// Required method
fn abi_decode(data: &[u8]) -> Result<Self, DecodeError>;
}
Expand description
ABI decode a value
Required Methods§
Sourcefn abi_decode(data: &[u8]) -> Result<Self, DecodeError>
fn abi_decode(data: &[u8]) -> Result<Self, DecodeError>
Decode a value from Ethereum ABI encoded bytes
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.