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§