pub enum WordCategory {
Done,
Reply,
Trap,
Fatal,
}Expand description
Represents the type of of a response.
The type is derived from the first Word in a [Sentence].
Valid types are !done, !re, !trap, and !fatal.
Variants§
Done
Represents a !done response.
Reply
Represents a !re response.
Trap
Represents a !trap response.
Fatal
Represents a !fatal response.
Trait Implementations§
Source§impl Clone for WordCategory
impl Clone for WordCategory
Source§fn clone(&self) -> WordCategory
fn clone(&self) -> WordCategory
Returns a duplicate of the value. Read more
1.0.0 · 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 WordCategory
impl Debug for WordCategory
Source§impl Display for WordCategory
impl Display for WordCategory
Source§impl PartialEq for WordCategory
impl PartialEq for WordCategory
Source§impl TryFrom<&str> for WordCategory
impl TryFrom<&str> for WordCategory
impl StructuralPartialEq for WordCategory
Auto Trait Implementations§
impl Freeze for WordCategory
impl RefUnwindSafe for WordCategory
impl Send for WordCategory
impl Sync for WordCategory
impl Unpin for WordCategory
impl UnwindSafe for WordCategory
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