pub trait ABIEncodable: Sized {
    // Required method
    fn abi_encode(&self) -> Vec<u8> ;
}
Expand description

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

Required Methods§

source

fn abi_encode(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ABIEncodable for ()

source§

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

source§

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

source§

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

source§

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

Implementors§