pub struct ConsoleTheme { /* private fields */ }
Expand description
Color theme for console error output
Implementations§
Source§impl ConsoleTheme
impl ConsoleTheme
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new theme with default colors Auto-detects terminal color support
Sourcepub fn with_colors() -> Self
pub fn with_colors() -> Self
Create a new theme with forced colors
Sourcepub fn format_error<E: ForgeError>(&self, err: &E) -> String
pub fn format_error<E: ForgeError>(&self, err: &E) -> String
Format an error display in a structured way
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConsoleTheme
impl RefUnwindSafe for ConsoleTheme
impl Send for ConsoleTheme
impl Sync for ConsoleTheme
impl Unpin for ConsoleTheme
impl UnwindSafe for ConsoleTheme
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