pub struct OutputFormatter;Expand description
Output formatter for consistent styling across the project
Implementations§
Source§impl OutputFormatter
impl OutputFormatter
Sourcepub fn success(message: impl Display) -> ColoredString
pub fn success(message: impl Display) -> ColoredString
Format a success message
Sourcepub fn error(message: impl Display) -> ColoredString
pub fn error(message: impl Display) -> ColoredString
Format an error message
Sourcepub fn warning(message: impl Display) -> ColoredString
pub fn warning(message: impl Display) -> ColoredString
Format a warning message
Sourcepub fn info(message: impl Display) -> ColoredString
pub fn info(message: impl Display) -> ColoredString
Format an info message
Sourcepub fn debug(message: impl Display) -> ColoredString
pub fn debug(message: impl Display) -> ColoredString
Format a debug message
Sourcepub fn label(label: impl Display) -> ColoredString
pub fn label(label: impl Display) -> ColoredString
Format a label (like “Info:”, “Error:”, etc.)
Sourcepub fn command(cmd: impl Display) -> ColoredString
pub fn command(cmd: impl Display) -> ColoredString
Format a command for display
Sourcepub fn path(path: impl Display) -> ColoredString
pub fn path(path: impl Display) -> ColoredString
Format a file path
Sourcepub fn key(key: impl Display) -> ColoredString
pub fn key(key: impl Display) -> ColoredString
Format a key or identifier
Sourcepub fn dim(message: impl Display) -> ColoredString
pub fn dim(message: impl Display) -> ColoredString
Format a dimmed/secondary message
Auto Trait Implementations§
impl Freeze for OutputFormatter
impl RefUnwindSafe for OutputFormatter
impl Send for OutputFormatter
impl Sync for OutputFormatter
impl Unpin for OutputFormatter
impl UnsafeUnpin for OutputFormatter
impl UnwindSafe for OutputFormatter
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