Trait feanor_math::seq::SwappableVectorViewMut
source · pub trait SwappableVectorViewMut<T: ?Sized>: VectorViewMut<T> {
// Required method
fn swap(&mut self, i: usize, j: usize);
}Expand description
A trait for VectorViewMuts that support swapping of two elements.
Since VectorViewMut is not necessarily able to return two mutable
references to different entries, supporting swapping is indeed a stronger
property than just being a VectorViewMut.
Required Methods§
Object Safety§
This trait is not object safe.