pub enum ArgumentShape {
None,
OneRequired,
TwoRequired,
OptionalThenRequired,
EnvironmentBody,
Variable,
}Expand description
Argument shape for a command or environment.
Variants§
None
No arguments.
OneRequired
One required argument.
TwoRequired
Two required arguments.
OptionalThenRequired
Optional argument followed by one required argument.
EnvironmentBody
Environment body with rows and cells.
Variable
Macro-like or otherwise variable argument shape.
Trait Implementations§
Source§impl Clone for ArgumentShape
impl Clone for ArgumentShape
Source§fn clone(&self) -> ArgumentShape
fn clone(&self) -> ArgumentShape
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 ArgumentShape
impl Debug for ArgumentShape
Source§impl PartialEq for ArgumentShape
impl PartialEq for ArgumentShape
Source§fn eq(&self, other: &ArgumentShape) -> bool
fn eq(&self, other: &ArgumentShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ArgumentShape
impl Eq for ArgumentShape
impl StructuralPartialEq for ArgumentShape
Auto Trait Implementations§
impl Freeze for ArgumentShape
impl RefUnwindSafe for ArgumentShape
impl Send for ArgumentShape
impl Sync for ArgumentShape
impl Unpin for ArgumentShape
impl UnsafeUnpin for ArgumentShape
impl UnwindSafe for ArgumentShape
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