Decode

Trait Decode 

Source
pub trait Decode<C>: Sized {
    // Required method
    fn decode<R: Read>(input: &mut R, context: &mut C) -> Result<Self>;
}

Required Methods§

Source

fn decode<R: Read>(input: &mut R, context: &mut C) -> Result<Self>

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<C> Decode<C> for i8

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for i16

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for i32

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for i64

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for i128

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for u8

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for u16

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for u32

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for u64

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C> Decode<C> for u128

Source§

fn decode<R: Read>(input: &mut R, _context: &mut C) -> Result<Self>

Source§

impl<C, T1: Decode<C>, T2: Decode<C>> Decode<C> for (T1, T2)

Source§

fn decode<R: Read>(input: &mut R, context: &mut C) -> Result<Self>

Source§

impl<C, T: EncodeSized + Decode<C>> Decode<C> for Option<T>

Source§

fn decode<R: Read>(input: &mut R, context: &mut C) -> Result<Self>

Implementors§

Source§

impl<C> Decode<C> for Entry

Source§

impl<C> Decode<C> for HeapSection

Source§

impl<C> Decode<C> for Offset

Source§

impl<C, T> Decode<C> for Section<T>

Source§

impl<C, T: Decode<C>> Decode<C> for Inline<Vec<T>>