#[non_exhaustive]pub enum HelpSection<'a> {
Short(&'a HelpSection<'a>),
Long(&'a HelpSection<'a>),
Text(&'a [Segment<'a>]),
Name(&'a str, &'a [HelpSection<'a>]),
Table(TableMode, &'a [(&'a str, &'a [HelpSection<'a>])]),
}
Expand description
Part of a help message. Should be created with the
sections
macro.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Short(&'a HelpSection<'a>)
Long(&'a HelpSection<'a>)
Text(&'a [Segment<'a>])
Name(&'a str, &'a [HelpSection<'a>])
Table(TableMode, &'a [(&'a str, &'a [HelpSection<'a>])])
Trait Implementations§
Source§impl<'a> Clone for HelpSection<'a>
impl<'a> Clone for HelpSection<'a>
Source§fn clone(&self) -> HelpSection<'a>
fn clone(&self) -> HelpSection<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for HelpSection<'a>
impl<'a> RefUnwindSafe for HelpSection<'a>
impl<'a> Send for HelpSection<'a>
impl<'a> Sync for HelpSection<'a>
impl<'a> Unpin for HelpSection<'a>
impl<'a> UnwindSafe for HelpSection<'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