Skip to main content

ABIDecodable

Trait ABIDecodable 

Source
pub trait ABIDecodable: Sized {
    // Required method
    fn abi_decode(data: &[u8]) -> Result<Self, ABIDecodeError>;
}
Expand description

A type implements ABIDecodable must be a tuple of types implement ABIVariable. For convenient, for the tuple with only one element like (U256,), we implement ABIDecodable for U256 instead.

Required Methods§

Source

fn abi_decode(data: &[u8]) -> Result<Self, ABIDecodeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ABIDecodable for ()

Source§

impl<A: ABIVariable, B: ABIVariable, C: ABIVariable, D: ABIVariable, E: ABIVariable> ABIDecodable for (A, B, C, D, E)

Source§

impl<A: ABIVariable, B: ABIVariable, C: ABIVariable, D: ABIVariable> ABIDecodable for (A, B, C, D)

Source§

impl<A: ABIVariable, B: ABIVariable, C: ABIVariable> ABIDecodable for (A, B, C)

Source§

impl<A: ABIVariable, B: ABIVariable> ABIDecodable for (A, B)

Implementors§