Trait rusty_perm::PermFromIndices [−][src]
An operator that builds a permutation from a list indexes.
Required methods
fn from_indices(indices: T) -> Option<Self>
[src]
Implementors
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<&'_ [usize]> for PermD
[src]
fn from_indices(indices: &[usize]) -> Option<Self>
[src]
Builds a dynamic permutation from a 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<const SIZE: usize> PermFromIndices<&'_ [usize; SIZE]> for PermS<SIZE>
[src]
fn from_indices(indices: &[usize; SIZE]) -> Option<Self>
[src]
Builds a static permutation from a borrowed array of indices.
impl<const SIZE: usize> PermFromIndices<Cow<'_, [usize]>> for PermS<SIZE>
[src]
fn from_indices(indices: Cow<'_, [usize]>) -> Option<Self>
[src]
Builds a static permutation from a copy-on-write 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<const SIZE: usize> PermFromIndices<[usize; SIZE]> for PermS<SIZE>
[src]
fn from_indices(indices: [usize; SIZE]) -> Option<Self>
[src]
Builds a static permutation from an owned array of indices.
impl<const SIZE: usize> PermFromIndices<&'_ [usize]> for PermS<SIZE>
[src]
fn from_indices(indices: &[usize]) -> Option<Self>
[src]
Builds a static permutation from a slice of indices.
impl<const SIZE: usize> PermFromIndices<Vec<usize, Global>> for PermS<SIZE>
[src]
fn from_indices(indices: Vec<usize>) -> Option<Self>
[src]
Builds a static permutation from a vector indices.