Trait AbiEncode

Source
pub trait AbiEncode {
    // Required method
    fn encode(self) -> Vec<u8> ;

    // Provided method
    fn encode_hex(self) -> String
       where Self: Sized { ... }
}
Expand description

Trait for ABI encoding

Required Methods§

Source

fn encode(self) -> Vec<u8>

ABI encode the type

Provided Methods§

Source

fn encode_hex(self) -> String
where Self: Sized,

Returns the encoded value as hex string, with a 0x prefix

Implementations on Foreign Types§

Source§

impl AbiEncode for bool

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for i8

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for i16

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for i32

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for i64

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for i128

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for u8

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for u16

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for u32

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for u64

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for u128

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for String

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for Vec<u8>

Source§

fn encode(self) -> Vec<u8>

Source§

impl AbiEncode for Bytes

Source§

fn encode(self) -> Vec<u8>

Source§

impl<'a> AbiEncode for &'a str

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A> AbiEncode for (A,)
where A: Tokenizable,

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B> AbiEncode for (A, B)
where A: Tokenizable, B: Tokenizable,

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C> AbiEncode for (A, B, C)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D> AbiEncode for (A, B, C, D)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E> AbiEncode for (A, B, C, D, E)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F> AbiEncode for (A, B, C, D, E, F)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G> AbiEncode for (A, B, C, D, E, F, G)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H> AbiEncode for (A, B, C, D, E, F, G, H)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I> AbiEncode for (A, B, C, D, E, F, G, H, I)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J> AbiEncode for (A, B, C, D, E, F, G, H, I, J)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> AbiEncode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)

Source§

fn encode(self) -> Vec<u8>

Source§

impl<T: TokenizableItem + Clone, const N: usize> AbiEncode for [T; N]

Source§

fn encode(self) -> Vec<u8>

Source§

impl<T: TokenizableItem + AbiArrayType> AbiEncode for Vec<T>

Source§

fn encode(self) -> Vec<u8>

Source§

impl<const N: usize> AbiEncode for [u8; N]

Source§

fn encode(self) -> Vec<u8>

Implementors§