pub trait FiniteSet<const N: usize>: Copy + Sized {
const ALL: [Self; N];
const LEN: usize = N;
// Provided methods
fn iter() -> impl Iterator<Item = Self> { ... }
fn iter_rev() -> impl Iterator<Item = Self> { ... }
}Expand description
Finite set, containing all its values.
Required Associated Constants§
Provided Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".