Trait evm_coder::abi::AbiDecode

source ·
pub trait AbiDecode: Sized + AbiType {
    // Required method
    fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>;

    // Provided methods
    fn abi_decode(input: &[u8]) -> Result<Self> { ... }
    fn abi_decode_call(input: &[u8]) -> Result<(Bytes4, Self)> { ... }
}
Expand description

Decode ABI value.

Required Methods§

source

fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>

Provided Methods§

source

fn abi_decode(input: &[u8]) -> Result<Self>

source

fn abi_decode_call(input: &[u8]) -> Result<(Bytes4, Self)>

Implementations on Foreign Types§

source§

impl AbiDecode for i16

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<i16>

source§

impl AbiDecode for i32

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<i32>

source§

impl<T: AbiDecode, const S: usize> AbiDecode for [T; S]

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>

source§

impl AbiDecode for ()

source§

fn dec(_input: &mut AbiDecoder<'_>) -> Result<Self>

source§

impl<A: AbiDecode, B: AbiDecode> AbiDecode for (A, B)

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<(A, B)>

source§

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

source§

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

source§

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

source§

impl AbiDecode for i64

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<i64>

source§

impl AbiDecode for u32

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<u32>

source§

impl<A: AbiDecode, B: AbiDecode, C: AbiDecode> AbiDecode for (A, B, C)

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<(A, B, C)>

source§

impl AbiDecode for u128

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<u128>

source§

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

source§

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

source§

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

source§

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

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<(A, B, C, D)>

source§

impl AbiDecode for H160

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>

source§

impl AbiDecode for i128

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<i128>

source§

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

source§

impl AbiDecode for U256

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>

source§

impl<T: AbiDecode + AbiDecodeZero> AbiDecode for Option<T>

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>

source§

impl AbiDecode for bool

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<Self>

source§

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

source§

impl AbiDecode for u16

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<u16>

source§

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

source§

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

source§

impl AbiDecode for u64

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<u64>

source§

impl AbiDecode for u8

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<u8>

source§

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

source§

impl<A: AbiDecode> AbiDecode for (A,)

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<(A,)>

source§

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

source§

impl AbiDecode for i8

source§

fn dec(input: &mut AbiDecoder<'_>) -> Result<i8>

Implementors§