Trait teardown_tree::Interval
[−]
[src]
pub trait Interval: Sized + Ord + Clone { type K: Ord + Clone; fn a(&self) -> &Self::K; fn b(&self) -> &Self::K; fn overlaps<Other: Interval<K = Self::K>>(&self, other: &Other) -> bool { ... } fn to_range(&self) -> Range<Self::K> { ... } }
Associated Types
Required Methods
Provided Methods
fn overlaps<Other: Interval<K = Self::K>>(&self, other: &Other) -> bool
fn to_range(&self) -> Range<Self::K>
Implementors
impl Interval for usize
impl<K: Ord + Clone> Interval for KeyInterval<K>