pub trait AbiType {
const SIGNATURE: SignatureUnit;
const IS_DYNAMIC: bool;
const HEAD_WORDS: u32;
// Provided method
fn signature() -> &'static str { ... }
}
Expand description
Helper for type.
Required Associated Constants§
Sourceconst SIGNATURE: SignatureUnit
const SIGNATURE: SignatureUnit
Signature for Ethereum ABI.
Sourceconst IS_DYNAMIC: bool
const IS_DYNAMIC: bool
Is this a dynamic type, per spec.
Sourceconst HEAD_WORDS: u32
const HEAD_WORDS: u32
How many AbiWords static data this type should occupy
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.