[][src]Trait binserde::ser::BinSerializer

pub trait BinSerializer: Sized {
    type Pipe: Write;
    pub fn pipe(&mut self) -> &mut Self::Pipe;
pub fn dedup(&mut self) -> &mut DedupContext;
pub fn mode(&self) -> Mode; pub fn with_mode(self, mode: Mode) -> WithMode<Self> { ... }
pub fn change_mode<F>(self, op: F) -> WithMode<Self>
    where
        F: FnOnce(&mut Mode)
, { ... }
pub fn disable_dedup(self) -> WithMode<Self> { ... } }

Associated Types

Loading content...

Required methods

pub fn pipe(&mut self) -> &mut Self::Pipe[src]

pub fn dedup(&mut self) -> &mut DedupContext[src]

pub fn mode(&self) -> Mode[src]

Loading content...

Provided methods

pub fn with_mode(self, mode: Mode) -> WithMode<Self>[src]

pub fn change_mode<F>(self, op: F) -> WithMode<Self> where
    F: FnOnce(&mut Mode), 
[src]

pub fn disable_dedup(self) -> WithMode<Self>[src]

Loading content...

Implementations on Foreign Types

impl<T, '_> BinSerializer for &'_ mut T where
    T: BinSerializer
[src]

type Pipe = T::Pipe

Loading content...

Implementors

impl BinSerializer for PrescanSerializer[src]

type Pipe = NullWrite

impl<S> BinSerializer for WithMode<S> where
    S: BinSerializer
[src]

type Pipe = S::Pipe

impl<W> BinSerializer for BinSerializerBase<W> where
    W: Write
[src]

type Pipe = W

Loading content...