Struct faer_core::permutation::PermutationRef
source · pub struct PermutationRef<'a> { /* private fields */ }Implementations§
source§impl<'a> PermutationRef<'a>
impl<'a> PermutationRef<'a>
sourcepub fn into_arrays(self) -> (&'a [usize], &'a [usize])
pub fn into_arrays(self) -> (&'a [usize], &'a [usize])
Returns the permutation as an array.
pub fn len(&self) -> usize
sourcepub unsafe fn new_unchecked(forward: &'a [usize], inverse: &'a [usize]) -> Self
pub unsafe fn new_unchecked(forward: &'a [usize], inverse: &'a [usize]) -> Self
Creates a new permutation 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> Clone for PermutationRef<'a>
impl<'a> Clone for PermutationRef<'a>
source§fn clone(&self) -> PermutationRef<'a>
fn clone(&self) -> PermutationRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for PermutationRef<'a>
impl<'a> Debug for PermutationRef<'a>
source§impl<'short, 'a> Reborrow<'short, &'short PermutationRef<'a>> for PermutationRef<'a>
impl<'short, 'a> Reborrow<'short, &'short PermutationRef<'a>> for PermutationRef<'a>
source§impl<'short, 'a> ReborrowMut<'short, &'short PermutationRef<'a>> for PermutationRef<'a>
impl<'short, 'a> ReborrowMut<'short, &'short PermutationRef<'a>> for PermutationRef<'a>
impl<'a> Copy for PermutationRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PermutationRef<'a>
impl<'a> Send for PermutationRef<'a>
impl<'a> Sync for PermutationRef<'a>
impl<'a> Unpin for PermutationRef<'a>
impl<'a> UnwindSafe for PermutationRef<'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