Trait LabelledArrayMut

Source
pub trait LabelledArrayMut<E, L>: LabelledArray<E, L> {
    // Required methods
    fn get_label_mut(&mut self) -> &mut L;
    unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut E;
}
Expand description

Array with optional label struct stored next to the data that can be mutated

Required Methods§

Source

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

Get mutable reference to the label.

Source

unsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut E

Get a mutable reference to the element at a specified index. Implementations of this method shouldn’t do any safety checks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E, L, P> LabelledArrayMut<E, L> for SafeArray<E, L, P>
where P: SafeArrayPtr<E, L>,