Trait IsntRangeExt

Source
pub trait IsntRangeExt<Idx>: Sealed<Idx> {
    // Required methods
    fn not_contains<U>(&self, item: &U) -> bool
       where Idx: PartialOrd<U>,
             U: PartialOrd<Idx> + ?Sized;
    fn is_not_empty(&self) -> bool;
}
Expand description

Extension for Range

Required Methods§

Source

fn not_contains<U>(&self, item: &U) -> bool
where Idx: PartialOrd<U>, U: PartialOrd<Idx> + ?Sized,

The negation of contains

Source

fn is_not_empty(&self) -> bool

The negation of is_empty

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.

Implementations on Foreign Types§

Source§

impl<Idx> IsntRangeExt<Idx> for Range<Idx>
where Idx: PartialOrd<Idx>,

Source§

fn not_contains<U>(&self, item: &U) -> bool
where Idx: PartialOrd<U>, U: PartialOrd<Idx> + ?Sized,

Source§

fn is_not_empty(&self) -> bool

Implementors§