p3_symmetric

Trait Permutation

Source
pub trait Permutation<T: Clone>: Clone + Sync {
    // Required method
    fn permute_mut(&self, input: &mut T);

    // Provided method
    fn permute(&self, input: T) -> T { ... }
}
Expand description

A permutation in the mathematical sense.

Required Methods§

Source

fn permute_mut(&self, input: &mut T)

Provided Methods§

Source

fn permute(&self, input: T) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§