pub enum Args {
None,
Shown(&'static str),
Unshown,
}Expand description
Whether a command takes an argument, and how /help spells it.
The two are not the same question. /model 3 still switches a model, but the way in is the
picker, and [number|name] in the table taught the syntax first — a reader memorised a shape
they never need. So a command can take an argument without the table advertising one.
Variants§
None
Takes none, and parse refuses a trailing word: /new something must not start a session
called “something”.
Shown(&'static str)
Takes one, and the table spells the shape after the name: /set <key> <value>.
Unshown
Takes one, but the table does not spell it: the interactive way in is the one to learn.
Implementations§
Trait Implementations§
impl Copy for Args
impl Eq for Args
impl StructuralPartialEq for Args
Auto Trait Implementations§
impl Forget for Args
impl Freeze for Args
impl Move for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Argswhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Argswhere
&'static str: UnwindSafe,
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> Equivalent<K> for Q
impl<Q, K> Equivalent<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.