Struct hel_colored::ANSIStringBuilder
source · pub struct ANSIStringBuilder { /* private fields */ }Expand description
A helper factory struct for an easy way to produce
many ANSIString with same styles and colors
Implementations§
source§impl ANSIStringBuilder
impl ANSIStringBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Returns new instance of ANSIStringBuilder
sourcepub fn build<T: AsRef<str>>(&self, s: T) -> ANSIString<T>
pub fn build<T: AsRef<str>>(&self, s: T) -> ANSIString<T>
Builds a new ANSIString instance without consuming builder
Trait Implementations§
source§impl Clone for ANSIStringBuilder
impl Clone for ANSIStringBuilder
source§fn clone(&self) -> ANSIStringBuilder
fn clone(&self) -> ANSIStringBuilder
Returns a copy 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 moresource§impl Colored for ANSIStringBuilder
impl Colored for ANSIStringBuilder
source§impl Debug for ANSIStringBuilder
impl Debug for ANSIStringBuilder
source§impl Default for ANSIStringBuilder
impl Default for ANSIStringBuilder
source§fn default() -> ANSIStringBuilder
fn default() -> ANSIStringBuilder
Returns the “default value” for a type. Read more
source§impl Styled for ANSIStringBuilder
impl Styled for ANSIStringBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ANSIStringBuilder
impl Send for ANSIStringBuilder
impl Sync for ANSIStringBuilder
impl Unpin for ANSIStringBuilder
impl UnwindSafe for ANSIStringBuilder
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