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§
Sourcefn not_contains<U>(&self, item: &U) -> bool
fn not_contains<U>(&self, item: &U) -> bool
The negation of contains
Sourcefn is_not_empty(&self) -> bool
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.