pub enum Relation {
Before,
After,
Overlaps,
Contains,
Within,
Equal,
}Expand description
One of the six coarsened Allen relations between two time regions.
The six are exhaustive and mutually exclusive over concrete
day-intervals: disjoint pairs are Before/After, coincident pairs are
Equal, proper containment (including a shared endpoint) is
Contains/Within, and partial overlap is Overlaps.
Variants§
Before
A ends before B starts (no shared day).
After
A starts after B ends (no shared day).
Overlaps
A and B share days but each also has days the other lacks on opposite sides (partial overlap).
Contains
B lies within A without being equal to it.
Within
A lies within B without being equal to it.
Equal
A and B cover exactly the same days.
Implementations§
Trait Implementations§
impl Copy for Relation
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more