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>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ABIDecodable for ()

source§

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

source§

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

source§

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

source§

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

Implementors§