Trait rusty_perm::Permutation[][src]

pub trait Permutation {
    fn len(&self) -> usize;
fn inverse(&self) -> Self;
fn indices(&self) -> &[usize];
fn pow(&self, exp: u32) -> Self; }

An abstract representation of permutation data structure.

Required methods

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

Gets the size of permutation.

fn inverse(&self) -> Self[src]

Builds the inverse of permutation.

fn indices(&self) -> &[usize][src]

Gets the reference to the internal permuted indices.

fn pow(&self, exp: u32) -> Self[src]

Loading content...

Implementors

impl Permutation for PermD[src]

impl<const SIZE: usize> Permutation for PermS<SIZE>[src]

Loading content...