pub struct Text { /* private fields */ }Implementations§
Source§impl Text
impl Text
pub fn new<S: Into<String>>(txt: S) -> Self
pub fn bold(self) -> Self
pub fn dim(self) -> Self
pub fn italic(self) -> Self
pub fn underlined(self) -> Self
pub fn blinking(self) -> Self
pub fn inversed(self) -> Self
pub fn bgblack(self) -> Self
pub fn bgred(self) -> Self
pub fn bggreen(self) -> Self
pub fn bgyellow(self) -> Self
pub fn bgblue(self) -> Self
pub fn bgmagenta(self) -> Self
pub fn bgcyan(self) -> Self
pub fn bgwhite(self) -> Self
pub fn black(self) -> Self
pub fn red(self) -> Self
pub fn green(self) -> Self
pub fn yellow(self) -> Self
pub fn blue(self) -> Self
pub fn magenta(self) -> Self
pub fn cyan(self) -> Self
pub fn white(self) -> Self
pub fn clean(self) -> Self
pub fn append<S: Into<String>>(self, txt: S) -> Self
pub fn prepend<S: Into<String>>(self, txt: S) -> Self
pub fn slice(self, start: usize, end: usize) -> Self
pub fn rpad<S: Into<String>>(self, width: usize, chr: S) -> Self
pub fn lpad<S: Into<String>>(self, width: usize, chr: S) -> Self
pub fn cpad<S: Into<String>>(self, width: usize, chr: S) -> Self
pub fn rtruncate<S: Into<String>>(self, width: usize, tail: S) -> Self
pub fn ltruncate<S: Into<String>>(self, width: usize, tail: S) -> Self
pub fn ctruncate<S: Into<String>>(self, width: usize, tail: S) -> Self
pub fn wrap(self, width: usize) -> Self
pub fn eol(self) -> Self
pub fn repair(self) -> Self
Trait Implementations§
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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