[][src]Trait heaparray::LabelledArray

pub trait LabelledArray<L, E>: 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. Causes undefined behavior if L is a zero-sized type.

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

Get mutable reference to the label. Causes undefined behavior if L is a zero-sized type.

Loading content...

Implementors

impl<'a, L, E> LabelledArray<L, E> for FatPtrArray<'a, L, E>[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, L, E> LabelledArray<L, E> for ThinPtrArray<'a, L, E>[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...