pub trait IGridViewMut<G, T, Idx, const N: usize>:
IGridView<G, T, Idx, N, Output = T, Output = T, Output = T>
+ GetMut<Vector<Idx, N>>
+ GetManyMut<Vector<Idx, N>>
+ IndexMut<Vector<Idx, N>>{
type WithLifetimeMut<'a>: IGridViewMut<G, T, Idx, N>
where Self: 'a;
// Required methods
fn view_mut<'a, 'b>(&'a mut self) -> Self::WithLifetimeMut<'b>
where 'a: 'b;
fn iter_mut(&mut self) -> GridViewIterMut<'_, G, T, Idx, N> ⓘ;
fn for_each_mut<F>(&mut self, f: F)
where F: FnMut((Vector<Idx, N>, &mut T));
// Provided methods
fn fill_fn<F>(&mut self, f: F)
where F: FnMut(Vector<Idx, N>) -> T { ... }
fn fill_uniform(&mut self, value: T)
where T: Clone { ... }
fn update_from_or_panic<O, G2>(&mut self, other: &O)
where O: IGridView<G2, T, Idx, N>,
G2: IGrid<T, Idx, N>,
T: Clone { ... }
fn update_from<O, G2>(&mut self, other: &O) -> Result<(), ()>
where O: IGridView<G2, T, Idx, N>,
G2: IGrid<T, Idx, N>,
T: Clone { ... }
}Required Associated Types§
type WithLifetimeMut<'a>: IGridViewMut<G, T, Idx, N> where Self: 'a
Required Methods§
fn view_mut<'a, 'b>(&'a mut self) -> Self::WithLifetimeMut<'b>where
'a: 'b,
fn iter_mut(&mut self) -> GridViewIterMut<'_, G, T, Idx, N> ⓘ
fn for_each_mut<F>(&mut self, f: F)
Provided Methods§
fn fill_fn<F>(&mut self, f: F)
fn fill_uniform(&mut self, value: T)where
T: Clone,
fn update_from_or_panic<O, G2>(&mut self, other: &O)
fn update_from<O, G2>(&mut self, other: &O) -> Result<(), ()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".