pub enum ParameterHeadingStyle {
Display,
Name,
Custom(Arc<dyn Fn(&ParameterInfo) -> String + Send + Sync + 'static>),
}Expand description
Controls how detailed parameter headings are rendered.
Variants§
Display
Render the full clap display form, such as ``### `-c
Name
Render the clap argument id, such as ### config.
Custom(Arc<dyn Fn(&ParameterInfo) -> String + Send + Sync + 'static>)
Render the parameter heading with a callback.
If the callback returns an empty string, the heading is skipped.
Implementations§
Trait Implementations§
Source§impl Clone for ParameterHeadingStyle
impl Clone for ParameterHeadingStyle
Source§fn clone(&self) -> ParameterHeadingStyle
fn clone(&self) -> ParameterHeadingStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for ParameterHeadingStyle
impl !UnwindSafe for ParameterHeadingStyle
impl Freeze for ParameterHeadingStyle
impl Send for ParameterHeadingStyle
impl Sync for ParameterHeadingStyle
impl Unpin for ParameterHeadingStyle
impl UnsafeUnpin for ParameterHeadingStyle
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