pub trait ABIEncodable: Sized {
    // Required method
    fn abi_encode(&self) -> Vec<u8> ⓘ;
}Expand description
A type implements ABIEncodable must be a tuple of types implement
ABIVariable. For convenient, for the tuple with only one element like
(U256,), we implement ABIEncodable for U256 instead.
Required Methods§
fn abi_encode(&self) -> Vec<u8> ⓘ
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.