Trait mz_ore::vec::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.

Implementations on Foreign Types§

source§

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

Implementors§