[−][src]Trait heaparray::impls::LabelledArray
Array with an optional label struct stored next to the data.
Required methods
fn with_label<F>(label: L, len: usize, func: F) -> Self where
F: FnMut(&mut L, usize) -> E,
F: FnMut(&mut L, usize) -> E,
Create a new array, with values initialized using a provided function, and label initialized to a provided value.
fn get_label(&self) -> &L
Get a reference to the label.
unsafe fn get_unchecked(&self, idx: usize) -> &E
Get a reference to the element at a specified index. Implementations of this method shouldn't do any safety checks.
Implementors
impl<A, R, E, L> LabelledArray<E, L> for RcArray<A, R, E, L> where
A: LabelledArray<E, R>,
R: RefCounter<L>,
[src]
A: LabelledArray<E, R>,
R: RefCounter<L>,
fn with_label<F>(label: L, len: usize, func: F) -> Self where
F: FnMut(&mut L, usize) -> E,
[src]
F: FnMut(&mut L, usize) -> E,
fn get_label(&self) -> &L
[src]
unsafe fn get_unchecked(&self, idx: usize) -> &E
[src]
impl<E, L, P> LabelledArray<E, L> for SafeArray<E, L, P> where
P: SafeArrayPtr<E, L>,
[src]
P: SafeArrayPtr<E, L>,