Trait mulch::ranges::RangeIntersect
source · 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>
Object Safety§
This trait is not object safe.