pub trait RangeExtensions {
// Required methods
fn width(&self) -> usize;
fn shift(&mut self, d: isize);
fn contains(&self, other: &Self) -> bool;
fn intersects(&self, other: &Self) -> bool;
fn intersection(&self, other: &Self) -> Self;
fn empty(&self) -> bool;
}
Required Methods§
fn width(&self) -> usize
fn shift(&mut self, d: isize)
fn contains(&self, other: &Self) -> bool
fn intersects(&self, other: &Self) -> bool
fn intersection(&self, other: &Self) -> Self
fn empty(&self) -> bool
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.