Skip to main content

ABIPackedEncodable

Trait ABIPackedEncodable 

Source
pub trait ABIPackedEncodable: Sized {
    // Required method
    fn abi_packed_encode(&self) -> Vec<u8> ⓘ;
}
Expand description

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

Required Methods§

Source

fn abi_packed_encode(&self) -> Vec<u8> ⓘ

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 ABIPackedEncodable for ()

Source§

fn abi_packed_encode(&self) -> Vec<u8> ⓘ

Source§

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

Source§

fn abi_packed_encode(&self) -> Vec<u8> ⓘ

Source§

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

Source§

fn abi_packed_encode(&self) -> Vec<u8> ⓘ

Source§

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

Source§

fn abi_packed_encode(&self) -> Vec<u8> ⓘ

Source§

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

Source§

fn abi_packed_encode(&self) -> Vec<u8> ⓘ

Implementors§