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§
impl StructuralPartialEq for OptGroup
Auto Trait Implementations§
impl Freeze for OptGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more