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
.
Implementations on Foreign Types
impl<'a> ShmemView<'a> for str
[src]
impl<'a, T> ShmemView<'a> for [T] where
T: Copy + 'a,
[src]
T: Copy + 'a,
impl<'a, T, D> ShmemView<'a> for Array<T, D> where
T: Copy + Default + 'a,
D: Dimension + Serialize + DeserializeOwned,
[src]
T: Copy + Default + 'a,
D: Dimension + Serialize + DeserializeOwned,