pub struct Style;Expand description
ANSI escape code styling utilities.
Implementations§
Source§impl Style
impl Style
pub const RESET: &'static str = "\x1b[0m"
pub const BOLD: &'static str = "\x1b[1m"
pub const RED: &'static str = "\x1b[31m"
pub const GREEN: &'static str = "\x1b[32m"
pub const YELLOW: &'static str = "\x1b[33m"
pub const BLUE: &'static str = "\x1b[34m"
pub const CYAN: &'static str = "\x1b[36m"
pub fn red(s: &str) -> String
pub fn blue(s: &str) -> String
pub fn cyan(s: &str) -> String
pub fn yellow(s: &str) -> String
pub fn green(s: &str) -> String
pub fn bold(s: &str) -> String
pub fn bold_red(s: &str) -> String
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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