Struct teardown_tree::KeyInterval
[−]
[src]
pub struct KeyInterval<K: Ord + Clone> { /* fields omitted */ }
Methods
impl<K: Ord + Clone> KeyInterval<K>
[src]
fn new(a: K, b: K) -> KeyInterval<K>
fn from_range(r: &Range<K>) -> KeyInterval<K>
Trait Implementations
impl<K: Debug + Ord + Clone> Debug for KeyInterval<K>
[src]
impl<K: Clone + Ord + Clone> Clone for KeyInterval<K>
[src]
fn clone(&self) -> KeyInterval<K>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<K: Copy + Ord + Clone> Copy for KeyInterval<K>
[src]
impl<K: Ord + Clone> Interval for KeyInterval<K>
[src]
type K = K
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>
impl<K: Ord + Clone> From<Range<K>> for KeyInterval<K>
[src]
impl<K: Ord + Clone> PartialEq for KeyInterval<K>
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<K: Ord + Clone> Eq for KeyInterval<K>
[src]
impl<K: Ord + Clone> PartialOrd for KeyInterval<K>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more