[][src]Trait tree_buf::internal::reader_writer::Writer

pub trait Writer {
    type Write: Writable;
    fn write(&mut self, value: &Self::Write);
fn flush(&self, branch: &BranchId, bytes: &mut Vec<u8>);
fn new() -> Self; }

Associated Types

Loading content...

Required methods

fn write(&mut self, value: &Self::Write)

fn flush(&self, branch: &BranchId, bytes: &mut Vec<u8>)

fn new() -> Self

Loading content...

Implementors

impl<T: Primitive + Copy> Writer for PrimitiveBuffer<T>[src]

type Write = T

impl<T: Writer> Writer for VecWriter<T>[src]

type Write = Vec<T::Write>

impl<V: Writer> Writer for OptionWriter<V>[src]

type Write = Option<V::Write>

Loading content...