allen-intervals 0.1.0

An efficient implementation of Allen's interval relations for Rust's range types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Methods for checking for a "equals" relation between intervals.
pub trait Equals<T>: Sized {
    /// Returns `true` iff `self` equals `other.0.
    ///
    /// ```plain
    /// self:  ┌────────┐
    /// other: └────────┘
    /// ```
    #[inline]
    fn equals(&self, _other: &T) -> bool {
        false
    }
}