pub trait AbiDecode: Sized + AbiType {
// Required method
fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>;
// Provided methods
fn abi_decode(input: &[u8]) -> Result<Self> { ... }
fn abi_decode_call(input: &[u8]) -> Result<(Bytes4, Self)> { ... }
}
Expand description
Decode ABI value.
Required Methods§
fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>
Provided Methods§
fn abi_decode(input: &[u8]) -> Result<Self>
fn abi_decode_call(input: &[u8]) -> Result<(Bytes4, 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.