[][src]Struct flatdata::RawData

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

Exposes blocks of raw data, providing auxiliary functionality like extracting substrings.

Methods

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

pub fn new(data: &'a [u8]) -> Self[src]

Create a new object from raw memory reference

pub fn substring(&self, start: usize) -> Result<&'a str, Utf8Error>[src]

Read a \0 terminated substring starting at specified offset

pub fn as_bytes(&self) -> &'a [u8][src]

Converts RawData back into bytes

Trait Implementations

impl<'a> Clone for RawData<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for RawData<'a>[src]

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

impl<'a> Deref for RawData<'a>[src]

type Target = [u8]

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> Sync for RawData<'a>

impl<'a> Unpin for RawData<'a>

impl<'a> Send for RawData<'a>

impl<'a> UnwindSafe for RawData<'a>

impl<'a> RefUnwindSafe for RawData<'a>

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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