Trait indexing::pointer::ContainerRef
[−]
[src]
pub unsafe trait ContainerRef<'id> { type Item; type Ref; unsafe fn dereference(ptr: *const Self::Item) -> Self::Ref; }
A reference to a Container<'id, _, _>
.
Associated Types
Required Methods
unsafe fn dereference(ptr: *const Self::Item) -> Self::Ref
Implementors
impl<'id, 'a, Array, T: 'a> ContainerRef<'id> for &'a Container<'id, Array> where
Array: Contiguous<Item = T>, type Item = T; type Ref = &'a T;impl<'id, 'a, Array, T: 'a> ContainerRef<'id> for &'a mut Container<'id, Array> where
Array: ContiguousMut<Item = T>, type Item = T; type Ref = &'a mut T;