pub struct Output { /* private fields */ }Expand description
Terminal output helper with color support.
Implementations§
Source§impl Output
impl Output
Sourcepub fn print_success(&self, message: &str)
pub fn print_success(&self, message: &str)
Print a success message.
Sourcepub fn print_error(&self, message: &str)
pub fn print_error(&self, message: &str)
Print an error message.
Sourcepub fn print_warn(&self, message: &str)
pub fn print_warn(&self, message: &str)
Print a warning message.
Sourcepub fn print_info(&self, message: &str)
pub fn print_info(&self, message: &str)
Print an info message.
Sourcepub fn print_heading(&self, text: &str)
pub fn print_heading(&self, text: &str)
Print a heading.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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