pub struct Styled { /* private fields */ }Expand description
Colored string builder.
Implementations§
Source§impl Styled
impl Styled
pub fn new() -> Self
pub fn green(&self, s: &str) -> String
pub fn red(&self, s: &str) -> String
pub fn yellow(&self, s: &str) -> String
pub fn blue(&self, s: &str) -> String
pub fn cyan(&self, s: &str) -> String
pub fn dim(&self, s: &str) -> String
pub fn bold(&self, s: &str) -> String
Auto Trait Implementations§
impl Freeze for Styled
impl RefUnwindSafe for Styled
impl Send for Styled
impl Sync for Styled
impl Unpin for Styled
impl UnsafeUnpin for Styled
impl UnwindSafe for Styled
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