pub trait RangeOperations<Rhs: ?Sized = Self>where
Self: Sized,{
// Required methods
fn intersects(&self, rhs: &Rhs) -> bool;
fn covering(&self, rhs: &Rhs) -> bool;
fn covered_by(&self, rhs: &Rhs) -> bool;
fn union(&self, rhs: &Rhs) -> Option<Self>;
}
Required Methods§
fn intersects(&self, rhs: &Rhs) -> bool
fn covering(&self, rhs: &Rhs) -> bool
fn covered_by(&self, rhs: &Rhs) -> bool
fn union(&self, rhs: &Rhs) -> Option<Self>
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.