Trait Decode

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

Required Methods§

Source

fn decode(buf: BufConst<Self>) -> 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 Decode for bool

Source§

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

Source§

impl Decode for char

Source§

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

Source§

impl Decode for f32

Source§

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

Source§

impl Decode for f64

Source§

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

Source§

impl Decode for i8

Source§

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

Source§

impl Decode for i32

Source§

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

Source§

impl Decode for i64

Source§

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

Source§

impl Decode for i128

Source§

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

Source§

impl Decode for u8

Source§

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

Source§

impl Decode for u32

Source§

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

Source§

impl Decode for u64

Source§

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

Source§

impl Decode for u128

Source§

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

Source§

impl Decode for ()

Source§

fn decode(_buf: BufConst<Self>) -> Self

Source§

impl<T> Decode for PhantomData<T>

Source§

fn decode(_buf: BufConst<Self>) -> Self

Source§

impl<T: Decode> Decode for Option<T>

Source§

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

Source§

impl<T: Decode, const N: usize> Decode for [T; N]

Source§

default fn decode(buf: BufConst<Self>) -> Self

Source§

impl<const N: usize> Decode for [u8; N]

Source§

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

Implementors§

Source§

impl<const LEN: usize, T: Base> Decode for Value<LEN, T>
where [(); T::LEN]:,