pub enum DiscourseRelation {
Cause,
Effect,
Contrast,
Elaboration,
Temporal,
Conditional,
Exemplification,
Summary,
None,
}Expand description
Possible discourse relations between two adjacent text segments.
Variants§
Cause
Segment 2 describes the cause of segment 1 (or explains why).
Effect
Segment 2 is the effect / result of segment 1.
Contrast
Segments present contrasting or opposing information.
Elaboration
Segment 2 elaborates, expands, or provides detail about segment 1.
Temporal
Segment 2 describes something that happened before or after segment 1.
Conditional
Segment 2 is conditioned on segment 1 (if–then).
Exemplification
Segment 2 exemplifies a claim made in segment 1.
Summary
Segment 2 summarises or concludes the discourse up to this point.
None
No discourse relation detected.
Trait Implementations§
Source§impl Clone for DiscourseRelation
impl Clone for DiscourseRelation
Source§fn clone(&self) -> DiscourseRelation
fn clone(&self) -> DiscourseRelation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscourseRelation
impl Debug for DiscourseRelation
Source§impl Display for DiscourseRelation
impl Display for DiscourseRelation
Source§impl Hash for DiscourseRelation
impl Hash for DiscourseRelation
Source§impl PartialEq for DiscourseRelation
impl PartialEq for DiscourseRelation
Source§fn eq(&self, other: &DiscourseRelation) -> bool
fn eq(&self, other: &DiscourseRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DiscourseRelation
impl StructuralPartialEq for DiscourseRelation
Auto Trait Implementations§
impl Freeze for DiscourseRelation
impl RefUnwindSafe for DiscourseRelation
impl Send for DiscourseRelation
impl Sync for DiscourseRelation
impl Unpin for DiscourseRelation
impl UnsafeUnpin for DiscourseRelation
impl UnwindSafe for DiscourseRelation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.