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: StringShort name of the option, e.g. h for a -h option
long_name: StringLong name of the option, e.g. help for a --help option
hint: StringHint for argument, e.g. FILE for a -o FILE option
desc: StringDescription for usage help text
hasarg: HasArgWhether option has an argument
occur: OccurHow 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