pub enum CommandHeadingStyle {
Display,
None,
Custom(Arc<dyn Fn(&CommandInfo) -> String + Send + Sync + 'static>),
}Expand description
Controls how command headings are rendered.
Variants§
Display
Render the full command path inside backticks.
None
Skip command headings.
Custom(Arc<dyn Fn(&CommandInfo) -> String + Send + Sync + 'static>)
Render the command heading with a callback.
If the callback returns an empty string, the heading is skipped.
Implementations§
Trait Implementations§
Source§impl Clone for CommandHeadingStyle
impl Clone for CommandHeadingStyle
Source§fn clone(&self) -> CommandHeadingStyle
fn clone(&self) -> CommandHeadingStyle
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 CommandHeadingStyle
impl !UnwindSafe for CommandHeadingStyle
impl Freeze for CommandHeadingStyle
impl Send for CommandHeadingStyle
impl Sync for CommandHeadingStyle
impl Unpin for CommandHeadingStyle
impl UnsafeUnpin for CommandHeadingStyle
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