Enum docopticon::UsageState
source · pub enum UsageState {
Start,
InUsage,
Command,
Optional,
Repeatable,
Required,
Argument,
End,
}Expand description
Substates of Usage parsing.
Variants§
Trait Implementations§
source§impl Ord for UsageState
impl Ord for UsageState
source§fn cmp(&self, other: &UsageState) -> Ordering
fn cmp(&self, other: &UsageState) -> Ordering
1.21.0 · 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 UsageState
impl PartialEq for UsageState
source§fn eq(&self, other: &UsageState) -> bool
fn eq(&self, other: &UsageState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for UsageState
impl PartialOrd for UsageState
source§fn partial_cmp(&self, other: &UsageState) -> Option<Ordering>
fn partial_cmp(&self, other: &UsageState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for UsageState
impl StructuralEq for UsageState
impl StructuralPartialEq for UsageState
Auto Trait Implementations§
impl RefUnwindSafe for UsageState
impl Send for UsageState
impl Sync for UsageState
impl Unpin for UsageState
impl UnwindSafe for UsageState
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