pub trait AbiDecode: Sized {
// Required method
fn decode(bytes: impl AsRef<[u8]>) -> Result<Self, AbiError>;
// Provided method
fn decode_hex(data: impl AsRef<str>) -> Result<Self, AbiError> { ... }
}
Expand description
Trait for ABI decoding
Required Methods§
Provided Methods§
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.