Trait sharify::ShmemView[][src]

pub trait ShmemView<'a>: ShmemBacked {
    type View;
    fn view(data: &'a [u8], metadata: &'a Self::MetaData) -> Self::View;
}

An immutable view into shared memory.

Associated Types

Loading content...

Required methods

fn view(data: &'a [u8], metadata: &'a Self::MetaData) -> Self::View[src]

Creates a Self::View into the shared memory at data based on the information in metadata.

Loading content...

Implementations on Foreign Types

impl<'a> ShmemView<'a> for str[src]

type View = &'a str

impl<'a, T> ShmemView<'a> for [T] where
    T: Copy + 'a, 
[src]

type View = &'a [T]

impl<'a, T, D> ShmemView<'a> for Array<T, D> where
    T: Copy + Default + 'a,
    D: Dimension + Serialize + DeserializeOwned
[src]

type View = ArrayView<'a, T, D>

Loading content...

Implementors

Loading content...