layout

Trait Encode

source
pub trait Encode {
    // Required method
    fn encode<W: Write + Seek + IO>(
        &self,
        writer: &mut W,
    ) -> Result<(), W::Error>;
}

Required Methods§

source

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::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 Encode for i8

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for i16

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for i32

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for i64

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for i128

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for u8

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for u16

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for u32

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for u64

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

impl Encode for u128

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

source§

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

source§

fn encode<W: Write + Seek + IO>(&self, writer: &mut W) -> Result<(), W::Error>

Implementors§

source§

impl Encode for RawBytes

source§

impl<T> Encode for Raw<T>