Skip to main content

IntoPermutation

Trait IntoPermutation 

Source
pub trait IntoPermutation<C: PermutableCollection> {
    // Required method
    fn act_permute(&self, rhs: &C) -> Option<Permutation<C::Rank>>;
}
Expand description

Trait defining an action on a permutable collection that can be converted into an equivalent permutation acting on that collection.

Required Methods§

Source

fn act_permute(&self, rhs: &C) -> Option<Permutation<C::Rank>>

Determines the permutation of rhs considered as a collection induced by the action of self on rhs considered as an element in its domain. If no such permutation could be found, None is returned.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§