ExactValues

Trait ExactValues 

Source
pub unsafe trait ExactValues<T: 'static + Copy + Eq + Ord>:
    'static
    + Default
    + Eq
    + Ord {
    const VALUES: &'static [T];

    // Provided method
    fn contains_value(val: T) -> bool { ... }
}
Expand description

§Invariants

  • VALUES must be sorted in ascending order

Required Associated Constants§

Source

const VALUES: &'static [T]

Provided Methods§

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§