Skip to main content

PartialOrdVecExt

Trait PartialOrdVecExt 

Source
pub trait PartialOrdVecExt<T> {
    // Required methods
    fn is_sorted(&self) -> bool;
    fn is_strictly_sorted(&self) -> bool;
}
Expand description

Extension methods for Vec<T> where T: PartialOrd

Required Methods§

Source

fn is_sorted(&self) -> bool

Returns whether the vector is sorted.

Source

fn is_strictly_sorted(&self) -> bool

Returns whether the vector is sorted with strict inequality.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> PartialOrdVecExt<T> for Vec<T>
where T: PartialOrd,

Implementors§