Struct froggy::Slice
[−]
[src]
pub struct Slice<'a, T: 'a> { /* fields omitted */ }
A slice of a storage. Useful for cursor iteration.
Methods
impl<'a, T> Slice<'a, T>
[src]
fn is_empty(&self) -> bool
[src]
Check if the slice contains no elements.
fn get(&'a self, pointer: &Pointer<T>) -> Option<&'a T>
[src]
Get a reference by pointer. Returns None if an element is outside of the slice.
fn get_mut(&'a mut self, pointer: &Pointer<T>) -> Option<&'a mut T>
[src]
Get a mutable reference by pointer. Returns None if an element is outside of the slice.