Trait AbiDecodeWith
pub trait AbiDecodeWith<Abi>: Sized {
type Error: Debug;
// Required method
fn decode_with(buffer: &[u8]) -> Result<Self, Self::Error>;
}
Expand description
Trait for ABI-specific decoding.
Required Associated Types§
Required Methods§
fn decode_with(buffer: &[u8]) -> Result<Self, Self::Error>
fn decode_with(buffer: &[u8]) -> Result<Self, Self::Error>
Decodes the data from a buffer using the provided ABI.
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.