pub trait IsSorted<T: PartialEq + PartialOrd + Clone + Copy> {
// Required method
fn is_sorted(&self) -> bool;
}Expand description
A trait providing the is_sorted method on Vec’s implementing T.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".