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.

impl<const SIZE: usize> Mul<&'_ Perm<Static<SIZE>>> for &PermD[src]

type Output = PermS<SIZE>

The resulting type after applying the * operator.

impl<T, const SIZE: usize> PermApply<[T; SIZE]> for PermD[src]

type Output = Result<(), &'static str>

impl<T> PermApply<[T]> for PermD[src]

type Output = Result<(), &'static str>

impl<T> PermApply<Vec<T, Global>> for PermD[src]

type Output = Result<(), &'static str>

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

impl<T> PermFromSorting<&'_ [T], T> for PermD[src]

type Output = Self

impl<T, const SIZE: usize> PermFromSorting<[T; SIZE], T> for PermD[src]

type Output = Self

impl<T> PermFromSorting<Vec<T, Global>, T> for PermD[src]

type Output = Self

impl PermProduct<Perm<Dynamic>> for PermD[src]

type Output = Option<PermD>

impl<const SIZE: usize> PermProduct<Perm<Static<SIZE>>> for PermD[src]

type Output = Option<PermS<SIZE>>

impl Permutation for PermD[src]

impl<'a, const SIZE: usize> Product<&'a Perm<Static<SIZE>>> for PermD[src]

impl<const SIZE: usize> Product<Perm<Static<SIZE>>> for PermD[src]