[][src]Trait tree_buf::internal::primitive::BatchData

pub trait BatchData: Sized {
    fn read_batch(bytes: &[u8]) -> Vec<Self>;
fn write_batch(items: &[Self], bytes: &mut Vec<u8>);
fn read_one(bytes: &[u8], offset: &mut usize) -> Self; fn write_one(item: Self, bytes: &mut Vec<u8>) { ... } }

Required methods

fn read_batch(bytes: &[u8]) -> Vec<Self>

fn write_batch(items: &[Self], bytes: &mut Vec<u8>)

fn read_one(bytes: &[u8], offset: &mut usize) -> Self

Loading content...

Provided methods

fn write_one(item: Self, bytes: &mut Vec<u8>)

Loading content...

Implementations on Foreign Types

impl BatchData for usize[src]

impl BatchData for bool[src]

impl BatchData for f64[src]

Loading content...

Implementors

impl BatchData for Array[src]

impl BatchData for Nullable[src]

impl<T: IntFromU64> BatchData for T[src]

Loading content...