Struct faer_core::permutation::PermutationMut
source · pub struct PermutationMut<'a> { /* private fields */ }Implementations§
source§impl<'a> PermutationMut<'a>
impl<'a> PermutationMut<'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§
source§impl<'a> Debug for PermutationMut<'a>
impl<'a> Debug for PermutationMut<'a>
source§impl<'short, 'a> Reborrow<'short, &'short PermutationMut<'a>> for PermutationMut<'a>
impl<'short, 'a> Reborrow<'short, &'short PermutationMut<'a>> for PermutationMut<'a>
source§impl<'short, 'a> ReborrowMut<'short, &'short PermutationMut<'a>> for PermutationMut<'a>
impl<'short, 'a> ReborrowMut<'short, &'short PermutationMut<'a>> for PermutationMut<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PermutationMut<'a>
impl<'a> Send for PermutationMut<'a>
impl<'a> Sync for PermutationMut<'a>
impl<'a> Unpin for PermutationMut<'a>
impl<'a> !UnwindSafe for PermutationMut<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more