Struct membuffer::MemBufferWriter[][src]

pub struct MemBufferWriter { /* fields omitted */ }

The Writer class which sets up the schema and writes it into the memory when finished building

Implementations

impl MemBufferWriter[src]

pub fn new() -> MemBufferWriter[src]

Creates a new empty memory format writer

pub fn serialize_i32_to(val: i32, to: &mut Vec<u8>)[src]

Serializes the integer to the memory slice

pub fn add_entry<T: MemBufferSerialize>(&mut self, val: T)[src]

pub fn add_serde_entry<T: Serialize>(&mut self, val: &T)[src]

pub fn finalize(&self) -> Vec<u8>[src]

Finalize the schema and return the memory slice holding the whole vector

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.