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§
Sourcefn get_label_mut(&mut self) -> &mut L
fn get_label_mut(&mut self) -> &mut L
Get mutable reference to the label.
Sourceunsafe fn get_mut_unchecked(&mut self, idx: usize) -> &mut E
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.