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
VALUESmust be sorted in ascending order
Required Associated Constants§
Provided Methods§
fn contains_value(val: T) -> bool
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.