pub enum AllenRelation {
Show 13 variants
Precedes,
Meets,
Overlaps,
FinishedBy,
Contains,
Starts,
Equals,
StartedBy,
During,
Finishes,
OverlappedBy,
MetBy,
PrecededBy,
}Expand description
The 13 relations of Allen’s interval algebra.
Variants§
Precedes
a ends strictly before b starts.
Meets
a ends exactly when b starts.
Overlaps
a starts before b and ends inside b.
FinishedBy
a starts before b and ends exactly when b ends.
Contains
a starts before b starts and ends after b ends.
Starts
a and b start at the same point; a ends before b.
Equals
a and b are identical.
StartedBy
a and b start at the same point; b ends before a.
During
a starts after b starts and ends before b ends (proper subset).
Finishes
a starts after b starts and ends exactly when b ends.
OverlappedBy
b starts before a and ends inside a.
MetBy
a starts exactly when b ends.
PrecededBy
a starts strictly after b ends.
Implementations§
Source§impl AllenRelation
impl AllenRelation
Sourcepub fn classify(a: &TimeInterval, b: &TimeInterval) -> AllenRelation
pub fn classify(a: &TimeInterval, b: &TimeInterval) -> AllenRelation
Classify two intervals into exactly one Allen relation.
Sourcepub fn is_overlapping_kind(self) -> bool
pub fn is_overlapping_kind(self) -> bool
Returns true when the two intervals share any common point under this
relation (i.e. the relation is not a strict precede or strict follow).
Trait Implementations§
Source§impl Clone for AllenRelation
impl Clone for AllenRelation
Source§fn clone(&self) -> AllenRelation
fn clone(&self) -> AllenRelation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AllenRelation
Source§impl Debug for AllenRelation
impl Debug for AllenRelation
impl Eq for AllenRelation
Source§impl Hash for AllenRelation
impl Hash for AllenRelation
Source§impl PartialEq for AllenRelation
impl PartialEq for AllenRelation
Source§fn eq(&self, other: &AllenRelation) -> bool
fn eq(&self, other: &AllenRelation) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllenRelation
Auto Trait Implementations§
impl Freeze for AllenRelation
impl RefUnwindSafe for AllenRelation
impl Send for AllenRelation
impl Sync for AllenRelation
impl Unpin for AllenRelation
impl UnsafeUnpin for AllenRelation
impl UnwindSafe for AllenRelation
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more