Struct customasm::util::StringStyler
source · pub struct StringStyler {
pub result: String,
pub use_colors: bool,
}
Fields§
§result: String
§use_colors: bool
Implementations§
source§impl StringStyler
impl StringStyler
pub fn new(use_colors: bool) -> StringStyler
pub fn add(&mut self, string: &str)
pub fn add_char(&mut self, ch: char)
pub fn addln(&mut self, string: &str)
pub fn indent(&mut self, indent: usize)
pub fn add_styled( &mut self, string: &str, pattern: &str, fn_start: &mut dyn FnMut(&mut StringStyler), fn_end: &mut dyn FnMut(&mut StringStyler), )
pub fn add_style(&mut self, style: &str)
pub fn reset(&mut self)
pub fn gray(&mut self)
pub fn white(&mut self)
pub fn red(&mut self)
pub fn yellow(&mut self)
pub fn cyan(&mut self)
pub fn bold(&mut self)
Auto Trait Implementations§
impl Freeze for StringStyler
impl RefUnwindSafe for StringStyler
impl Send for StringStyler
impl Sync for StringStyler
impl Unpin for StringStyler
impl UnwindSafe for StringStyler
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