[][src]Trait heaparray::LabelledArray

pub trait LabelledArray<E, L>: Array<E> {
    fn get_label(&self) -> &L;
fn get_label_mut(&mut self) -> &mut L; }

Array with an optional label struct stored next to the data.

Required methods

fn get_label(&self) -> &L

Get immutable access to the label.

fn get_label_mut(&mut self) -> &mut L

Get mutable reference to the label.

Loading content...

Implementors

impl<'a, E, L> LabelledArray<E, L> for FatPtrArray<'a, E, L>[src]

fn get_label(&self) -> &L[src]

Get a reference to the label of the array.

fn get_label_mut(&mut self) -> &mut L[src]

Get a mutable reference to the label of the array.

impl<'a, E, L> LabelledArray<E, L> for ThinPtrArray<'a, E, L>[src]

fn get_label(&self) -> &L[src]

Get a reference to the label of the array.

fn get_label_mut(&mut self) -> &mut L[src]

Get a mutable reference to the label of the array.

Loading content...