pub struct FancyStringBuilder { /* private fields */ }Implementations§
Source§impl FancyStringBuilder
impl FancyStringBuilder
pub fn new(word: &str) -> Self
pub fn color_background(&mut self, r: u8, g: u8, b: u8) -> Self
pub fn color_foreground(&mut self, r: u8, g: u8, b: u8) -> Self
pub fn bold(&mut self) -> Self
pub fn faint(&mut self) -> Self
pub fn italic(&mut self) -> Self
pub fn underline(&mut self) -> Self
pub fn blink(&mut self) -> Self
pub fn invert(&mut self) -> Self
pub fn strikethrough(&mut self) -> Self
pub fn hide(&mut self) -> Self
pub fn as_string(&mut self) -> String
Trait Implementations§
Source§impl Clone for FancyStringBuilder
impl Clone for FancyStringBuilder
Source§fn clone(&self) -> FancyStringBuilder
fn clone(&self) -> FancyStringBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FancyStringBuilder
impl RefUnwindSafe for FancyStringBuilder
impl Send for FancyStringBuilder
impl Sync for FancyStringBuilder
impl Unpin for FancyStringBuilder
impl UnwindSafe for FancyStringBuilder
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