pub trait RangeIntersect: Sized {
// Required methods
fn encompasses(&self, other: Self) -> bool;
fn intersects(&self, other: Self) -> bool;
fn intersection(&self, other: Self) -> Option<Self>;
fn split(&self, other: Self) -> (Option<Self>, Option<Self>, Option<Self>);
}
Required Methods§
Sourcefn encompasses(&self, other: Self) -> bool
fn encompasses(&self, other: Self) -> bool
Returns true
if all values in other
are within self
.
fn intersects(&self, other: Self) -> bool
fn intersection(&self, other: Self) -> 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.