Trait Decode

Source
pub trait Decode: Instance {
    // Required method
    fn decode(buf: BufConst<Self>) -> (Self, usize);
}

Required Methods§

Source

fn decode(buf: BufConst<Self>) -> (Self, usize)

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 Decode for String

Source§

fn decode(buf: BufConst<Self>) -> (Self, usize)

Source§

impl<'a> Decode for &'a [u8]

Source§

fn decode(buf: BufConst<Self>) -> (Self, usize)

Implementors§

Source§

impl Decode for Const

Source§

impl<T: Decode> Decode for T