pub struct HelpFormatter { /* private fields */ }Implementations§
Source§impl HelpFormatter
impl HelpFormatter
pub fn new(title: impl Into<String>) -> Self
pub fn add_section(&mut self, title: impl Into<String>) -> &mut Self
pub fn add_command( &mut self, command: impl Into<String>, description: impl Into<String>, examples: Vec<String>, ) -> &mut Self
pub fn render(&self, colors: &HashMap<String, String>) -> String
Auto Trait Implementations§
impl Freeze for HelpFormatter
impl RefUnwindSafe for HelpFormatter
impl Send for HelpFormatter
impl Sync for HelpFormatter
impl Unpin for HelpFormatter
impl UnwindSafe for HelpFormatter
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