Struct membuffer::MemBufferReader[][src]

pub struct MemBufferReader<'a> { /* fields omitted */ }

The reader which is used for reading the memory area produced by the writer

Implementations

impl<'a> MemBufferReader<'a>[src]

pub fn get_string_field(
    &'a self,
    name: &'a str
) -> Result<&'a str, MemBufferError>
[src]

Tries to get the given field as string

pub fn get_vecu64_field(
    &'a self,
    name: &'a str
) -> Result<Vec<u64>, MemBufferError>
[src]

pub fn get_i32_field(&'a self, name: &'a str) -> Result<i32, MemBufferError>[src]

pub fn new(val: &'a [u8]) -> Result<MemBufferReader<'a>, MemBufferError>[src]

Creates a new memory format reader from the given memory slice, as the readed values are borrowed from the memory slice the reader cannot outlive the memory it borrows from

Trait Implementations

impl<'a> Debug for MemBufferReader<'a>[src]

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.