Struct faer_core::permutation::PermutationIndicesRef
source · pub struct PermutationIndicesRef<'a> { /* private fields */ }Implementations
sourceimpl<'a> PermutationIndicesRef<'a>
impl<'a> PermutationIndicesRef<'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
sourceimpl<'a> Clone for PermutationIndicesRef<'a>
impl<'a> Clone for PermutationIndicesRef<'a>
sourcefn clone(&self) -> PermutationIndicesRef<'a>
fn clone(&self) -> PermutationIndicesRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'a> Debug for PermutationIndicesRef<'a>
impl<'a> Debug for PermutationIndicesRef<'a>
sourceimpl<'short, 'a> Reborrow<'short, &'short PermutationIndicesRef<'a>> for PermutationIndicesRef<'a>
impl<'short, 'a> Reborrow<'short, &'short PermutationIndicesRef<'a>> for PermutationIndicesRef<'a>
type Target = PermutationIndicesRef<'short>
fn rb(&'short self) -> Self::Target
sourceimpl<'short, 'a> ReborrowMut<'short, &'short PermutationIndicesRef<'a>> for PermutationIndicesRef<'a>
impl<'short, 'a> ReborrowMut<'short, &'short PermutationIndicesRef<'a>> for PermutationIndicesRef<'a>
type Target = PermutationIndicesRef<'short>
fn rb_mut(&'short mut self) -> Self::Target
impl<'a> Copy for PermutationIndicesRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PermutationIndicesRef<'a>
impl<'a> Send for PermutationIndicesRef<'a>
impl<'a> Sync for PermutationIndicesRef<'a>
impl<'a> Unpin for PermutationIndicesRef<'a>
impl<'a> UnwindSafe for PermutationIndicesRef<'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