pub struct TextBuilder { /* private fields */ }Implementations§
Source§impl TextBuilder
impl TextBuilder
pub fn empty() -> TextBuilder
pub fn append(&mut self, text: &str) -> &mut Self
pub fn centered(&mut self, text: &str) -> &mut Self
pub fn reset(&mut self) -> &mut Self
pub fn ln(&mut self) -> &mut Self
pub fn fg<COLOR>(&mut self, col: COLOR) -> &mut Self
pub fn bg<COLOR>(&mut self, col: COLOR) -> &mut Self
pub fn line_wrap(&mut self, text: &str) -> &mut Self
Auto Trait Implementations§
impl Freeze for TextBuilder
impl RefUnwindSafe for TextBuilder
impl Send for TextBuilder
impl Sync for TextBuilder
impl Unpin for TextBuilder
impl UnwindSafe for TextBuilder
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