layout

Trait Decode

source
pub trait Decode: Sized {
    // Required method
    fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>;
}

Required Methods§

source

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::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 Decode for i8

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for i16

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for i32

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for i64

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for i128

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for u8

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for u16

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for u32

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for u64

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl Decode for u128

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<A: Decode + Fixed, B: Decode + Fixed, C: Decode + Fixed, D: Decode + Fixed, E: Decode + Fixed, F: Decode + Fixed, G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<B: Decode + Fixed, C: Decode + Fixed, D: Decode + Fixed, E: Decode + Fixed, F: Decode + Fixed, G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<C: Decode + Fixed, D: Decode + Fixed, E: Decode + Fixed, F: Decode + Fixed, G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<D: Decode + Fixed, E: Decode + Fixed, F: Decode + Fixed, G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<E: Decode + Fixed, F: Decode + Fixed, G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (E, F, G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<F: Decode + Fixed, G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (F, G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<G: Decode + Fixed, H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (G, H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<H: Decode + Fixed, I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (H, I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<I: Decode + Fixed, J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (I, J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<J: Decode + Fixed, K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (J, K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<K: Decode + Fixed, L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (K, L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<L: Decode + Fixed, M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (L, M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<M: Decode + Fixed, N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (M, N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<N: Decode + Fixed, O: Decode + Fixed, P: Decode + Fixed> Decode for (N, O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<O: Decode + Fixed, P: Decode + Fixed> Decode for (O, P)

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

impl<T: Decode + Fixed> Decode for Box<[T]>

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

source§

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

source§

fn decode<R: Read + Seek + IO>(reader: &mut R) -> Result<Self, R::Error>

Implementors§

source§

impl Decode for RawBytes

source§

impl<T> Decode for Raw<T>