Skip to main content

Derangement

Trait Derangement 

Source
pub trait Derangement<T: Clone>: Permutation<T> { }
Expand description

A derangement: a permutation with no fixed points (d(x) != x for all x).

The standard choice is d(x) = x + 1 (via Increment).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Clone + Sync + Send + Add<Output = T>> Derangement<T> for Increment<T>