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

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

Required methods

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

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

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

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 u8[src]

impl BatchData for u16[src]

impl BatchData for u32[src]

impl BatchData for u64[src]

impl BatchData for bool[src]

impl BatchData for String[src]

impl BatchData for f64[src]

Loading content...

Implementors

impl BatchData for Array[src]

impl BatchData for Nullable[src]

Loading content...