pub trait ABIVariable: Sized {
const BASIC_TYPE: bool;
const STATIC_LENGTH: Option<usize>;
// Required methods
fn from_abi(data: &[u8]) -> Result<Self, ABIDecodeError>;
fn to_abi(&self) -> LinkedBytes;
fn to_packed_abi(&self) -> LinkedBytes;
}
Required Associated Constants§
const BASIC_TYPE: bool
const STATIC_LENGTH: Option<usize>
Required Methods§
fn from_abi(data: &[u8]) -> Result<Self, ABIDecodeError>
fn to_abi(&self) -> LinkedBytes
fn to_packed_abi(&self) -> LinkedBytes
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.