pub struct Console { /* private fields */ }Implementations§
Source§impl Console
impl Console
pub fn new<T: Into<String>>(text: T) -> Self
pub fn new_with_style<T: Into<String>>(text: T, style: Style) -> Self
pub fn with_text<T: Into<String>>(&self, text: T) -> Self
pub fn fg(self, color: Color) -> Self
pub fn bg(self, color: Color) -> Self
pub fn fg_rgb(self, r: u8, g: u8, b: u8) -> Self
pub fn bg_rgb(self, r: u8, g: u8, b: u8) -> 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 bright_black(self) -> Self
pub fn bright_red(self) -> Self
pub fn bright_green(self) -> Self
pub fn bright_yellow(self) -> Self
pub fn bright_blue(self) -> Self
pub fn bright_magenta(self) -> Self
pub fn bright_cyan(self) -> Self
pub fn bright_white(self) -> Self
pub fn on_black(self) -> Self
pub fn on_red(self) -> Self
pub fn on_green(self) -> Self
pub fn on_yellow(self) -> Self
pub fn on_blue(self) -> Self
pub fn on_magenta(self) -> Self
pub fn on_cyan(self) -> Self
pub fn on_white(self) -> Self
pub fn on_bright_black(self) -> Self
pub fn on_bright_red(self) -> Self
pub fn on_bright_green(self) -> Self
pub fn on_bright_yellow(self) -> Self
pub fn on_bright_blue(self) -> Self
pub fn on_bright_magenta(self) -> Self
pub fn on_bright_cyan(self) -> Self
pub fn on_bright_white(self) -> Self
pub fn attr(self, attribute: Attribute) -> Self
pub fn bold(self) -> Self
pub fn dim(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 print(&self)
pub fn println(&self)
pub fn write_to<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn to_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Console
impl RefUnwindSafe for Console
impl Send for Console
impl Sync for Console
impl Unpin for Console
impl UnwindSafe for Console
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