pub enum RstRelation {
Elaboration,
Contrast,
Cause,
Result,
Concession,
Sequence,
Condition,
Background,
Summary,
}Expand description
A rhetorical relation between a discourse unit and its predecessor.
See Mann & Thompson (1988). The subset below covers the eight most-common
relations in transaction/change-report narratives. When an RST relation
is attached to an event in a crate::DocumentPlan, the renderer uses
the relation to pick a discourse marker (“Furthermore”, “However”,
“As a result”, etc.) instead of the default inter-sentence space.
Variants§
Elaboration
This unit adds detail to the previous unit.
Contrast
This unit contrasts with the previous unit.
Cause
This unit is caused by the previous unit.
Result
This unit is a result of the previous unit.
Concession
This unit runs counter to an expectation set up by the previous unit.
Sequence
This unit follows the previous unit in time.
Condition
This unit is conditional on the previous unit.
Background
This unit provides context for the previous unit.
Summary
This unit summarizes the preceding units.
Trait Implementations§
Source§impl Clone for RstRelation
impl Clone for RstRelation
Source§fn clone(&self) -> RstRelation
fn clone(&self) -> RstRelation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RstRelation
impl Debug for RstRelation
Source§impl Hash for RstRelation
impl Hash for RstRelation
Source§impl Ord for RstRelation
impl Ord for RstRelation
Source§fn cmp(&self, other: &RstRelation) -> Ordering
fn cmp(&self, other: &RstRelation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RstRelation
impl PartialEq for RstRelation
Source§fn eq(&self, other: &RstRelation) -> bool
fn eq(&self, other: &RstRelation) -> bool
self and other values to be equal, and is used by ==.