pub(crate) struct HelpItems<'a> {
pub(crate) items: Vec<HelpItem<'a>>,
}Expand description
A collection of all the help items separated into flags, positionals and commands
Items are stored as references and can be trivially copied
Fields§
§items: Vec<HelpItem<'a>>Implementations§
Source§impl<'a> HelpItems<'a>
impl<'a> HelpItems<'a>
fn items_of_ty(&self, target: HiTy) -> impl Iterator<Item = &HelpItem<'_>>
Source§impl<'a> HelpItems<'a>
impl<'a> HelpItems<'a>
Sourcepub(crate) fn append_meta(&mut self, meta: &'a Meta)
pub(crate) fn append_meta(&mut self, meta: &'a Meta)
Recursively classify contents of the Meta
fn find_group(&self) -> Option<RangeInclusive<usize>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HelpItems<'a>
impl<'a> RefUnwindSafe for HelpItems<'a>
impl<'a> Send for HelpItems<'a>
impl<'a> Sync for HelpItems<'a>
impl<'a> Unpin for HelpItems<'a>
impl<'a> UnwindSafe for HelpItems<'a>
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