pub struct Styled<T> { /* private fields */ }Expand description
Wraps something in a Style.
Implementations§
Source§impl<T> Styled<T>
impl<T> Styled<T>
pub fn bold(self) -> Self
pub fn dimmed(self) -> Self
pub fn italic(self) -> Self
pub fn underline(self) -> Self
pub fn blink(self) -> Self
pub fn reverse(self) -> Self
pub fn strikethrough(self) -> Self
pub fn fg(self, color: Color) -> Self
pub fn on(self, color: Color) -> Self
pub fn black(self) -> Self
pub fn red(self) -> Self
pub fn green(self) -> Self
pub fn yellow(self) -> Self
pub fn blue(self) -> Self
pub fn magenta(self) -> Self
pub fn cyan(self) -> Self
pub fn white(self) -> Self
pub fn fixed(self, n: u8) -> Self
pub fn rgb(self, r: u8, g: u8, b: u8) -> Self
Trait Implementations§
impl<T: Copy> Copy for Styled<T>
impl<T> StructuralPartialEq for Styled<T>
Auto Trait Implementations§
impl<T> Freeze for Styled<T>where
T: Freeze,
impl<T> RefUnwindSafe for Styled<T>where
T: RefUnwindSafe,
impl<T> Send for Styled<T>where
T: Send,
impl<T> Sync for Styled<T>where
T: Sync,
impl<T> Unpin for Styled<T>where
T: Unpin,
impl<T> UnwindSafe for Styled<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