pub struct StyledDisplay<T> { /* private fields */ }Expand description
A struct that wraps a value and its style.
Trait Implementations§
Source§impl<T: Debug> Debug for StyledDisplay<T>
impl<T: Debug> Debug for StyledDisplay<T>
Auto Trait Implementations§
impl<T> Freeze for StyledDisplay<T>where
T: Freeze,
impl<T> RefUnwindSafe for StyledDisplay<T>where
T: RefUnwindSafe,
impl<T> Send for StyledDisplay<T>where
T: Send,
impl<T> Sync for StyledDisplay<T>where
T: Sync,
impl<T> Unpin for StyledDisplay<T>where
T: Unpin,
impl<T> UnwindSafe for StyledDisplay<T>where
T: UnwindSafe,
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
Source§impl<T> Stylize for Twhere
T: Display,
impl<T> Stylize for Twhere
T: Display,
Source§fn style(self, style: Style) -> StyledDisplay<T>
fn style(self, style: Style) -> StyledDisplay<T>
Apply a style to a value.
Source§fn red(self) -> StyledDisplay<T>
fn red(self) -> StyledDisplay<T>
Apply red color style to a value.
Source§fn green(self) -> StyledDisplay<T>
fn green(self) -> StyledDisplay<T>
Apply green color style to a value.
Source§fn blue(self) -> StyledDisplay<T>
fn blue(self) -> StyledDisplay<T>
Apply blue color style to a value.
Source§fn yellow(self) -> StyledDisplay<T>
fn yellow(self) -> StyledDisplay<T>
Apply yellow color style to a value.
Source§fn magenta(self) -> StyledDisplay<T>
fn magenta(self) -> StyledDisplay<T>
Apply magenta color style to a value.
Source§fn cyan(self) -> StyledDisplay<T>
fn cyan(self) -> StyledDisplay<T>
Apply cyan color style to a value.
Source§fn white(self) -> StyledDisplay<T>
fn white(self) -> StyledDisplay<T>
Apply white color style to a value.
Source§fn black(self) -> StyledDisplay<T>
fn black(self) -> StyledDisplay<T>
Apply black color style to a value.
Source§fn bright_red(self) -> StyledDisplay<T>
fn bright_red(self) -> StyledDisplay<T>
Apply bright red color style to a value.
Source§fn bright_green(self) -> StyledDisplay<T>
fn bright_green(self) -> StyledDisplay<T>
Apply bright green color style to a value.
Source§fn bright_blue(self) -> StyledDisplay<T>
fn bright_blue(self) -> StyledDisplay<T>
Apply bright blue color style to a value.
Source§fn bright_yellow(self) -> StyledDisplay<T>
fn bright_yellow(self) -> StyledDisplay<T>
Apply bright yellow color style to a value.
Source§fn bright_magenta(self) -> StyledDisplay<T>
fn bright_magenta(self) -> StyledDisplay<T>
Apply bright magenta color style to a value.
Source§fn bright_cyan(self) -> StyledDisplay<T>
fn bright_cyan(self) -> StyledDisplay<T>
Apply bright cyan color style to a value.
Source§fn bright_white(self) -> StyledDisplay<T>
fn bright_white(self) -> StyledDisplay<T>
Apply bright white color style to a value.
Source§fn bold(self) -> StyledDisplay<T>
fn bold(self) -> StyledDisplay<T>
Apply bold style to a value.
Source§fn underline(self) -> StyledDisplay<T>
fn underline(self) -> StyledDisplay<T>
Apply underline style to a value.
Source§fn dimmed(self) -> StyledDisplay<T>
fn dimmed(self) -> StyledDisplay<T>
Apply dimmed style to a value.