Struct rusty_perm::Perm[][src]

pub struct Perm<S> where
    S: PermSize
{ /* fields omitted */ }

Generic permutation data structure.

Implementations

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

pub fn identity() -> Self[src]

pub fn swap(first: usize, second: usize) -> Option<Self>[src]

pub fn cycle() -> Self[src]

pub fn reverse_cycle() -> Self[src]

pub fn permute_indices(&self, perm: &PermS<SIZE>) -> Self[src]

pub fn conjugate_with(&self, other: &PermS<SIZE>) -> Self[src]

pub fn to_size<const NEW_SIZE: usize>(&self) -> Option<PermS<NEW_SIZE>>[src]

impl Perm<Static<0_usize>>[src]

pub fn empty() -> Self[src]

impl Perm<Static<1_usize>>[src]

pub fn unit() -> Self[src]

impl Perm<Static<2_usize>>[src]

pub fn swap2() -> Self[src]

impl Perm<Dynamic>[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]

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

pub fn into_dynamic(self) -> PermD[src]

Trait Implementations

impl<S: Clone> Clone for Perm<S> where
    S: PermSize,
    S::Container: Clone
[src]

impl<S: Debug> Debug for Perm<S> where
    S: PermSize,
    S::Container: Debug
[src]

impl<S: Eq> Eq for Perm<S> where
    S: PermSize,
    S::Container: Eq
[src]

impl<S: Hash> Hash for Perm<S> where
    S: PermSize,
    S::Container: Hash
[src]

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

type Output = PermS<SIZE>

The resulting type after applying the * operator.

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 &PermS<SIZE>[src]

type Output = PermS<SIZE>

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<SL, SR> PartialEq<Perm<SR>> for Perm<SL> where
    SL: PermSize,
    SR: PermSize
[src]

impl<const SIZE: usize> PermProduct<Perm<Dynamic>> for PermS<SIZE>[src]

type Output = Option<PermS<SIZE>>

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

type Output = Option<PermD>

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

type Output = PermS<SIZE>

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

type Output = Option<PermS<SIZE>>

impl<'a, const SIZE: usize> Product<&'a Perm<Dynamic>> for Option<PermS<SIZE>>[src]

impl<'a> Product<&'a Perm<Dynamic>> for Option<PermD>[src]

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

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

impl<const SIZE: usize> Product<Perm<Dynamic>> for Option<PermS<SIZE>>[src]

impl Product<Perm<Dynamic>> for Option<PermD>[src]

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

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

impl<S> StructuralEq for Perm<S> where
    S: PermSize
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Perm<S> where
    <S as PermSize>::Container: RefUnwindSafe
[src]

impl<S> Send for Perm<S> where
    <S as PermSize>::Container: Send
[src]

impl<S> Sync for Perm<S> where
    <S as PermSize>::Container: Sync
[src]

impl<S> Unpin for Perm<S> where
    <S as PermSize>::Container: Unpin
[src]

impl<S> UnwindSafe for Perm<S> where
    <S as PermSize>::Container: UnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,