[−][src]Struct agnes::permute::Permutation
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]
self,
new_permutation: &[usize]
) -> Permutation<Vec<usize>>
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]
fn eq(&self, other: &Permutation<I>) -> bool
[src]
fn ne(&self, other: &Permutation<I>) -> bool
[src]
impl<I: Clone> Clone for Permutation<I>
[src]
fn clone(&self) -> 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]
fn default() -> 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]
Auto Trait Implementations
impl<I> Send for Permutation<I> where
I: Send,
I: Send,
impl<I> Sync for Permutation<I> where
I: Sync,
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]
Haystack: Member<Needle, IsMember = B1>,
Needle: Label,
impl<Frames, Store> JoinIntoStore for Frames
[src]
type Output = Store
The output type after augmenting Store
.
fn join_into_store(&Self, Store, &[usize]) -> Result<Store, AgnesError>
[src]
impl<Frames> AssocDataIndexCons for Frames
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Same for T
[src]
type Output = T
Should always be Self