pub struct ArgSpec {
pub required: bool,
pub kind: ArgKind,
pub content: ContentKind,
}Expand description
One argument slot in a command/environment signature.
Fields§
§required: booltrue for a mandatory {…} argument, false for an optional […] one.
kind: ArgKind§content: ContentKindHow the formatter treats this argument’s content. See ContentKind.
Trait Implementations§
impl Copy for ArgSpec
impl Eq for ArgSpec
impl StructuralPartialEq for ArgSpec
Auto Trait Implementations§
impl Freeze for ArgSpec
impl RefUnwindSafe for ArgSpec
impl Send for ArgSpec
impl Sync for ArgSpec
impl Unpin for ArgSpec
impl UnsafeUnpin for ArgSpec
impl UnwindSafe for ArgSpec
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