Trait gat_std::ops::IndexMut

source ·
pub trait IndexMut<T>: Index<T> {
    type OutputMut<'a>
    where
        Self: 'a
; fn index_mut(&mut self, idx: T) -> Self::OutputMut<'_>; }
Expand description

Index operator for mutable contexts. As opposed to std, the returned value can be a non-reference. This allows custom reference types for things like multi-dimensional matrices.

Required Associated Types§

The output type of indexing this value

Required Methods§

Get the value at this index mutably

Implementors§