[][src]Trait ssz::Decode

pub trait Decode: Prefixable + Sized {
    fn decode_as<I: Input>(value: &mut I) -> Option<(Self, usize)>;

    fn decode<I: Input>(value: &mut I) -> Option<Self> { ... }
}

Trait that allows zero-copy read of value-references from slices in LE format.

Required methods

fn decode_as<I: Input>(value: &mut I) -> Option<(Self, usize)>

Attempt to deserialise the value from input. Return the number of bytes read as the second parameter.

Loading content...

Provided methods

fn decode<I: Input>(value: &mut I) -> Option<Self>

Attempt to deserialise the value from input.

Loading content...

Implementations on Foreign Types

impl<T: Decode> Decode for [T; 1][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 2][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 3][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 4][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 5][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 6][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 7][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 8][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 9][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 10][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 11][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 12][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 13][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 14][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 15][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 16][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 17][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 18][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 19][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 20][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 21][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 22][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 23][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 24][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 25][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 26][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 27][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 28][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 29][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 30][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 31][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 32][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 40][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 48][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 56][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 64][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 72][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 96][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 128][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 160][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 192][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 224][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 256][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 1024][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for [T; 8192][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for Box<T>[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for Vec<u8>[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for String[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<T: Decode> Decode for Vec<T>[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<A: Decode, B: Decode, C: Decode, D: Decode, E: Decode, F: Decode, G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (A, B, C, D, E, F, G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<B: Decode, C: Decode, D: Decode, E: Decode, F: Decode, G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (B, C, D, E, F, G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<C: Decode, D: Decode, E: Decode, F: Decode, G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (C, D, E, F, G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<D: Decode, E: Decode, F: Decode, G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (D, E, F, G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<E: Decode, F: Decode, G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (E, F, G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<F: Decode, G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (F, G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<G: Decode, H: Decode, I: Decode, J: Decode, K: Decode> Decode for (G, H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<H: Decode, I: Decode, J: Decode, K: Decode> Decode for (H, I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<I: Decode, J: Decode, K: Decode> Decode for (I, J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<J: Decode, K: Decode> Decode for (J, K)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl<K: Decode> Decode for (K,)[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for u16[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for u32[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for u64[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for u128[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for usize[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for i16[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for i32[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for i64[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for i128[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for isize[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for i8[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 1][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 2][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 3][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 4][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 5][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 6][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 7][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 8][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 10][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 12][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 14][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 16][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 20][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 24][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 28][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 32][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 40][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 48][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 56][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 64][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 80][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 96][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 112][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for [u8; 128][src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for bool[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for H160[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for H256[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

impl Decode for U256[src]

fn decode<I: Input>(value: &mut I) -> Option<Self>[src]

Loading content...

Implementors

Loading content...