[][src]Struct agnes::permute::Permutation

pub struct Permutation<I> { /* fields omitted */ }

A structure containing information about the permutation status of a field. I represents the underlying permutation implementation type (such as Vec<usize> or &usize).

Methods

impl Permutation<Vec<usize>>[src]

pub fn update_indices(
    self,
    new_permutation: &[usize]
) -> Permutation<Vec<usize>>
[src]

Consumes this Permutation and returns a new Permutation with new values from new_permutation.

impl<'_> Permutation<&'_ [usize]>[src]

pub fn map_index(&self, requested: usize) -> usize[src]

Returns the re-organized index of a requested index.

pub fn len(&self) -> Option<usize>[src]

Returns the length of this permutation, if it exists. None means that no permutation exists (the full field in its original order can be used).

pub fn is_permuted(&self) -> bool[src]

Returns whether or not a permutation actually exists.

impl Permutation<Vec<usize>>[src]

pub fn map_index(&self, requested: usize) -> usize[src]

Returns the re-organized index of a requested index.

pub fn len(&self) -> Option<usize>[src]

Returns the length of this permutation, if it exists. None means that no permutation exists (the full field in its original order can be used).

pub fn is_permuted(&self) -> bool[src]

Returns whether or not a permutation actually exists.

Trait Implementations

impl<I: Eq> Eq for Permutation<I>[src]

impl<I: PartialEq> PartialEq<Permutation<I>> for Permutation<I>[src]

impl<I: Clone> Clone for Permutation<I>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<I> Default for Permutation<I>[src]

impl<'a> From<&'a [usize]> for Permutation<&'a [usize]>[src]

impl From<Vec<usize>> for Permutation<Vec<usize>>[src]

impl<I: Debug> Debug for Permutation<I>[src]

impl<I: Hash> Hash for Permutation<I>[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<I> Send for Permutation<I> where
    I: Send

impl<I> Sync for Permutation<I> where
    I: Sync

Blanket Implementations

impl<T> IntoLabeled for T[src]

impl<T> HasLabels for T[src]

impl<Needle, Haystack> HasLabels for Haystack where
    Haystack: Member<Needle, IsMember = B1>,
    Needle: Label
[src]

impl<Frames, Store> JoinIntoStore for Frames[src]

type Output = Store

The output type after augmenting Store.

impl<Frames> AssocDataIndexCons for Frames[src]

type Output = Nil

Type of associated data index cons-list.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same for T[src]

type Output = T

Should always be Self