pub(crate) struct OptGroup {
pub(crate) short_name: String,
pub(crate) long_name: String,
pub(crate) hint: String,
pub(crate) desc: String,
pub(crate) hasarg: HasArg,
pub(crate) occur: Occur,
}
Expand description
One group of options, e.g., both -h
and --help
, along with
their shared description and properties.
Fields§
§short_name: String
Short name of the option, e.g. h
for a -h
option
long_name: String
Long name of the option, e.g. help
for a --help
option
hint: String
Hint for argument, e.g. FILE
for a -o FILE
option
desc: String
Description for usage help text
hasarg: HasArg
Whether option has an argument
occur: Occur
How often it can occur
Implementations§
Trait Implementations§
source§impl PartialEq<OptGroup> for OptGroup
impl PartialEq<OptGroup> for OptGroup
impl StructuralEq for OptGroup
impl StructuralPartialEq for OptGroup
Auto Trait Implementations§
impl RefUnwindSafe for OptGroup
impl Send for OptGroup
impl Sync for OptGroup
impl Unpin for OptGroup
impl UnwindSafe for OptGroup
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