pub struct Style;Implementations§
Source§impl Style
impl Style
pub const RESET: &'static str = "\x1b[0m"
pub const BOLD: &'static str = "\x1b[1m"
pub const BLUE: &'static str = "\x1b[34m"
pub const BRIGHT_BLUE: &'static str = "\x1b[94m"
pub const BRIGHT_GREEN: &'static str = "\x1b[92m"
pub const BRIGHT_YELLOW: &'static str = "\x1b[93m"
pub const BRIGHT_RED: &'static str = "\x1b[91m"
pub const GRAY: &'static str = "\x1b[90m"
pub fn separator() -> String
pub fn title(text: &str) -> String
pub fn green(text: &str) -> String
pub fn blue(text: &str) -> String
pub fn yellow(text: &str) -> String
pub fn red(text: &str) -> String
pub fn plain(text: &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 UnsafeUnpin 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