[−][src]Trait solid_core::encode::Encode
Declares a type to be encodable as a Solidity type
Required methods
Loading content...Provided methods
fn required_len(&self) -> u64
The number of bytes required to encode the current type.
This can be a static or dynamic value based on the type. The value should be 32 bytes aligned, and does not include the 32 bytes required for the offset.
fn is_dynamic() -> bool
Is this type considered dynamic
by solidity
If the type is dynamic then the value
of this field is actually the offset
Implementations on Foreign Types
impl Encode for bool
[src]
impl<'_, T> Encode for &'_ T where
T: Encode,
[src]
T: Encode,
impl<T> Encode for Vec<T> where
T: Encode,
[src]
T: Encode,
impl<'a, T> Encode for &'a [T] where
T: Encode,
[src]
T: Encode,