DecodeUsedBytesFrom

Trait DecodeUsedBytesFrom 

Source
pub trait DecodeUsedBytesFrom: Sized {
    // Required method
    fn decode_used_bytes<T: Bits + ?Sized>(
        inp: &mut T,
        len: u8,
    ) -> Result<Self, Error>;
}

Required Methods§

Source

fn decode_used_bytes<T: Bits + ?Sized>( inp: &mut T, len: u8, ) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DecodeUsedBytesFrom for u32

Source§

fn decode_used_bytes<T: Bits + ?Sized>( inp: &mut T, len: u8, ) -> Result<Self, Error>

Implementors§