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 Eq for OptGroup
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)