pub struct CStyle(pub &'static str);Expand description
Struct to represent a console style
Tuple Fieldsยง
ยง0: &'static strTrait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for CStyle
impl RefUnwindSafe for CStyle
impl Send for CStyle
impl Sync for CStyle
impl Unpin for CStyle
impl UnsafeUnpin for CStyle
impl UnwindSafe for CStyle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Sourceยงimpl<T> Stylable for Twhere
T: Display,
impl<T> Stylable for Twhere
T: Display,
fn print(&self)
fn println(&self)
fn wrap_reset(&self, style: &CStyle) -> String
fn in_bold(&self) -> String
fn in_dim(&self) -> String
fn in_italic(&self) -> String
fn in_underline(&self) -> String
fn in_blink(&self) -> String
fn in_gray(&self) -> String
fn in_red(&self) -> String
fn in_green(&self) -> String
fn in_yellow(&self) -> String
fn in_blue(&self) -> String
fn in_magenta(&self) -> String
fn in_cyan(&self) -> String
fn in_white(&self) -> String
fn in_orange(&self) -> String
fn in_pink(&self) -> String
fn in_purple(&self) -> String
fn on_gray(&self) -> String
fn on_red(&self) -> String
fn on_green(&self) -> String
fn on_yellow(&self) -> String
fn on_blue(&self) -> String
fn on_magenta(&self) -> String
fn on_cyan(&self) -> String
fn on_white(&self) -> String
fn on_orange(&self) -> String
fn on_pink(&self) -> String
fn on_purple(&self) -> String
fn subtle(&self) -> String
fn as_info(&self) -> String
fn as_success(&self) -> String
fn as_warning(&self) -> String
fn as_error(&self) -> String
fn as_debug(&self) -> String
fn with_nostyle(&self) -> String
fn vibrant(&self) -> String
Sourceยงfn print_positioned<F>(&self, x: i32, y: i32, func: F)
fn print_positioned<F>(&self, x: i32, y: i32, func: F)
Print the text at a specific position
x and y are offsets from the current position