Struct faer_core::permutation::PermutationIndicesMut
source · pub struct PermutationIndicesMut<'a> { /* private fields */ }Implementations
sourceimpl<'a> PermutationIndicesMut<'a>
impl<'a> PermutationIndicesMut<'a>
sourcepub unsafe fn into_arrays(self) -> (&'a mut [usize], &'a mut [usize])
pub unsafe fn into_arrays(self) -> (&'a mut [usize], &'a mut [usize])
Returns the permutation as an array.
pub fn len(&self) -> usize
sourcepub unsafe fn new_unchecked(
forward: &'a mut [usize],
inverse: &'a mut [usize]
) -> Self
pub unsafe fn new_unchecked(
forward: &'a mut [usize],
inverse: &'a mut [usize]
) -> Self
Creates a new permutation mutable reference, without checking the validity of the inputs.
Safety
forward and inverse must have the same length, be valid permutations, and be inverse
permutations of each other.
Trait Implementations
sourceimpl<'a> Debug for PermutationIndicesMut<'a>
impl<'a> Debug for PermutationIndicesMut<'a>
sourceimpl<'short, 'a> Reborrow<'short, &'short PermutationIndicesMut<'a>> for PermutationIndicesMut<'a>
impl<'short, 'a> Reborrow<'short, &'short PermutationIndicesMut<'a>> for PermutationIndicesMut<'a>
type Target = PermutationIndicesRef<'short>
fn rb(&'short self) -> Self::Target
sourceimpl<'short, 'a> ReborrowMut<'short, &'short PermutationIndicesMut<'a>> for PermutationIndicesMut<'a>
impl<'short, 'a> ReborrowMut<'short, &'short PermutationIndicesMut<'a>> for PermutationIndicesMut<'a>
type Target = PermutationIndicesMut<'short>
fn rb_mut(&'short mut self) -> Self::Target
Auto Trait Implementations
impl<'a> RefUnwindSafe for PermutationIndicesMut<'a>
impl<'a> Send for PermutationIndicesMut<'a>
impl<'a> Sync for PermutationIndicesMut<'a>
impl<'a> Unpin for PermutationIndicesMut<'a>
impl<'a> !UnwindSafe for PermutationIndicesMut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more