pub enum RhetoricalCategory {
Removal,
Addition,
Modification,
Other,
}Expand description
Rhetorical classification of an event based on its template key.
Used by DocumentPlan::from_events_grouped to organize a batch of
events into thematic sections — a breaking-changes paragraph, an
additions paragraph, etc. — instead of the default same-entity grouping.
Variants§
Removal
Deletions, removals — typically breaking changes. Leads the narrative.
Addition
New entities, features, introductions.
Modification
Modifications, renames, moves, signature changes — existing code that was altered.
Other
Anything the default classifier doesn’t recognize.
Trait Implementations§
Source§impl Clone for RhetoricalCategory
impl Clone for RhetoricalCategory
Source§fn clone(&self) -> RhetoricalCategory
fn clone(&self) -> RhetoricalCategory
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 RhetoricalCategory
impl Debug for RhetoricalCategory
Source§impl Hash for RhetoricalCategory
impl Hash for RhetoricalCategory
Source§impl Ord for RhetoricalCategory
impl Ord for RhetoricalCategory
Source§fn cmp(&self, other: &RhetoricalCategory) -> Ordering
fn cmp(&self, other: &RhetoricalCategory) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RhetoricalCategory
impl PartialEq for RhetoricalCategory
Source§fn eq(&self, other: &RhetoricalCategory) -> bool
fn eq(&self, other: &RhetoricalCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RhetoricalCategory
impl PartialOrd for RhetoricalCategory
impl Copy for RhetoricalCategory
impl Eq for RhetoricalCategory
impl StructuralPartialEq for RhetoricalCategory
Auto Trait Implementations§
impl Freeze for RhetoricalCategory
impl RefUnwindSafe for RhetoricalCategory
impl Send for RhetoricalCategory
impl Sync for RhetoricalCategory
impl Unpin for RhetoricalCategory
impl UnsafeUnpin for RhetoricalCategory
impl UnwindSafe for RhetoricalCategory
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