Trait tetsy_scale_codec::DecodeAll[][src]

pub trait DecodeAll: Sized {
    fn decode_all(input: &[u8]) -> Result<Self, Error>;

Extension trait to Decode that ensures that the given input data is consumed completly while decoding.

Required methods

fn decode_all(input: &[u8]) -> Result<Self, Error>[src]

Decode Self and consume all of the given input data.

If not all data is consumed, an error is returned.

Loading content...


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

Loading content...