pub enum EventClass {
ScopeAddition,
Completion,
EstimateChange,
Unclassified,
}Expand description
The closed classification vocabulary (data-model.md §2).
Variants§
ScopeAddition
The recorded event adds work to the selected scope’s planned set.
Completion
The recorded event completes work in the selected scope.
EstimateChange
The recorded event changes the planned size of work in the scope.
Unclassified
A recorded event this classification does not place, or one it can only partly read. Never counted as progress.
Implementations§
Source§impl EventClass
impl EventClass
Sourcepub const ALL: [EventClass; 4]
pub const ALL: [EventClass; 4]
Every class, in the order a surface renders them.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The canonical spelling (data-model.md §2: scope_addition, completion,
estimate_change, unclassified).
Sourcepub fn parse(raw: &str) -> Option<Self>
pub fn parse(raw: &str) -> Option<Self>
Parse a canonical spelling; None for anything outside the vocabulary.
Sourcepub const fn is_classified(self) -> bool
pub const fn is_classified(self) -> bool
Whether the event carries a class other than EventClass::Unclassified.
Trait Implementations§
Source§impl Clone for EventClass
impl Clone for EventClass
impl Copy for EventClass
Source§impl Debug for EventClass
impl Debug for EventClass
Source§impl Display for EventClass
impl Display for EventClass
impl Eq for EventClass
Source§impl Hash for EventClass
impl Hash for EventClass
Source§impl Ord for EventClass
impl Ord for EventClass
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EventClass
impl PartialEq for EventClass
Source§impl PartialOrd for EventClass
impl PartialOrd for EventClass
impl StructuralPartialEq for EventClass
Auto Trait Implementations§
impl Freeze for EventClass
impl RefUnwindSafe for EventClass
impl Send for EventClass
impl Sync for EventClass
impl Unpin for EventClass
impl UnsafeUnpin for EventClass
impl UnwindSafe for EventClass
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more