Type Definition rusty_perm::PermD [−][src]
type PermD = Perm<Dynamic>;
Permutation type with runtime size.
Implementations
impl PermD
[src]
pub fn empty() -> Self
[src]
pub fn unit() -> Self
[src]
pub fn swap(size: usize, first: usize, second: usize) -> Option<Self>
[src]
pub fn identity(size: usize) -> Self
[src]
pub fn cycle(size: usize) -> Self
[src]
pub fn reverse_cycle(size: usize) -> Self
[src]
pub fn permute_indices(&self, perm: &PermD) -> Option<Self>
[src]
pub fn conjugate_with(&self, other: &PermD) -> Option<Self>
[src]
pub fn to_size(&self, new_size: usize) -> Option<PermD>
[src]
pub fn into_static<const SIZE: usize>(self) -> Option<PermS<SIZE>>
[src]
Trait Implementations
impl Mul<&'_ Perm<Dynamic>> for &PermD
[src]
type Output = PermD
The resulting type after applying the *
operator.
fn mul(self, other: &PermD) -> Self::Output
[src]
impl<const SIZE: usize> Mul<&'_ Perm<Static<SIZE>>> for &PermD
[src]
type Output = PermS<SIZE>
The resulting type after applying the *
operator.
fn mul(self, other: &PermS<SIZE>) -> Self::Output
[src]
impl<T, const SIZE: usize> PermApply<[T; SIZE]> for PermD
[src]
impl<T> PermApply<[T]> for PermD
[src]
impl<T> PermApply<Vec<T, Global>> for PermD
[src]
impl PermFromIndices<&'_ [usize]> for PermD
[src]
fn from_indices(indices: &[usize]) -> Option<Self>
[src]
Builds a dynamic permutation from a slice of indices.
impl<const SIZE: usize> PermFromIndices<[usize; SIZE]> for PermD
[src]
fn from_indices(indices: [usize; SIZE]) -> Option<Self>
[src]
Builds a dynamic permutation from an array of indices.
impl PermFromIndices<Cow<'_, [usize]>> for PermD
[src]
fn from_indices(indices: Cow<'_, [usize]>) -> Option<Self>
[src]
Builds a dynamic permutation from a copy-on-write slice of indices.
impl PermFromIndices<Vec<usize, Global>> for PermD
[src]
fn from_indices(indices: Vec<usize>) -> Option<Self>
[src]
Builds a dynamic permutation from a vector of indices.
impl<T, const SIZE: usize> PermFromSorting<&'_ [T; SIZE], T> for PermD
[src]
type Output = Self
fn from_sort(vec: &[T; SIZE]) -> Self::Output where
T: Ord,
[src]
T: Ord,
fn from_sort_by<F>(vec: &[T; SIZE], compare: F) -> Self::Output where
F: FnMut(&T, &T) -> Ordering,
[src]
F: FnMut(&T, &T) -> Ordering,
fn from_sort_by_key<B, F>(vec: &[T; SIZE], f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
fn from_sort_by_cached_key<B, F>(vec: &[T; SIZE], f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
impl<T> PermFromSorting<&'_ [T], T> for PermD
[src]
type Output = Self
fn from_sort(vec: &[T]) -> Self::Output where
T: Ord,
[src]
T: Ord,
fn from_sort_by<F>(vec: &[T], compare: F) -> Self::Output where
F: FnMut(&T, &T) -> Ordering,
[src]
F: FnMut(&T, &T) -> Ordering,
fn from_sort_by_key<B, F>(vec: &[T], f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
fn from_sort_by_cached_key<B, F>(vec: &[T], f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
impl<T, const SIZE: usize> PermFromSorting<[T; SIZE], T> for PermD
[src]
type Output = Self
fn from_sort(vec: [T; SIZE]) -> Self::Output where
T: Ord,
[src]
T: Ord,
fn from_sort_by<F>(vec: [T; SIZE], compare: F) -> Self::Output where
F: FnMut(&T, &T) -> Ordering,
[src]
F: FnMut(&T, &T) -> Ordering,
fn from_sort_by_key<B, F>(vec: [T; SIZE], f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
fn from_sort_by_cached_key<B, F>(vec: [T; SIZE], f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
impl<T> PermFromSorting<Vec<T, Global>, T> for PermD
[src]
type Output = Self
fn from_sort(vec: Vec<T>) -> Self::Output where
T: Ord,
[src]
T: Ord,
fn from_sort_by<F>(vec: Vec<T>, compare: F) -> Self::Output where
F: FnMut(&T, &T) -> Ordering,
[src]
F: FnMut(&T, &T) -> Ordering,
fn from_sort_by_key<B, F>(vec: Vec<T>, f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,
fn from_sort_by_cached_key<B, F>(vec: Vec<T>, f: F) -> Self::Output where
B: Ord,
F: FnMut(&T) -> B,
[src]
B: Ord,
F: FnMut(&T) -> B,