Trait Permutation

Source
pub trait Permutation: Sized {
    // Required methods
    fn num_points(&self) -> u64;
    fn nth(&self, n: u64) -> Option<u64>;

    // Provided method
    fn iter(&self) -> PermutationIter<'_, Self>  { ... }
}

Required Methods§

Source

fn num_points(&self) -> u64

Source

fn nth(&self, n: u64) -> Option<u64>

Provided Methods§

Source

fn iter(&self) -> PermutationIter<'_, Self>

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§