[−][src]Struct txttyp::Text
Methods
impl Text
[src]
pub fn new<S: Into<String>>(txt: S) -> Self
[src]
pub fn bold(self) -> Self
[src]
pub fn dim(self) -> Self
[src]
pub fn italic(self) -> Self
[src]
pub fn underlined(self) -> Self
[src]
pub fn blinking(self) -> Self
[src]
pub fn inversed(self) -> Self
[src]
[src]
pub fn bgblack(self) -> Self
[src]
pub fn bgred(self) -> Self
[src]
pub fn bggreen(self) -> Self
[src]
pub fn bgyellow(self) -> Self
[src]
pub fn bgblue(self) -> Self
[src]
pub fn bgmagenta(self) -> Self
[src]
pub fn bgcyan(self) -> Self
[src]
pub fn bgwhite(self) -> Self
[src]
pub fn black(self) -> Self
[src]
pub fn red(self) -> Self
[src]
pub fn green(self) -> Self
[src]
pub fn yellow(self) -> Self
[src]
pub fn blue(self) -> Self
[src]
pub fn magenta(self) -> Self
[src]
pub fn cyan(self) -> Self
[src]
pub fn white(self) -> Self
[src]
pub fn clean(self) -> Self
[src]
pub fn append<S: Into<String>>(self, txt: S) -> Self
[src]
pub fn prepend<S: Into<String>>(self, txt: S) -> Self
[src]
pub fn slice(self, start: usize, end: usize) -> Self
[src]
pub fn rpad<S: Into<String>>(self, width: usize, chr: S) -> Self
[src]
pub fn lpad<S: Into<String>>(self, width: usize, chr: S) -> Self
[src]
pub fn cpad<S: Into<String>>(self, width: usize, chr: S) -> Self
[src]
pub fn rtruncate<S: Into<String>>(self, width: usize, tail: S) -> Self
[src]
pub fn ltruncate<S: Into<String>>(self, width: usize, tail: S) -> Self
[src]
pub fn ctruncate<S: Into<String>>(self, width: usize, tail: S) -> Self
[src]
pub fn wrap(self, width: usize) -> Self
[src]
pub fn eol(self) -> Self
[src]
pub fn repair(self) -> Self
[src]
Trait Implementations
impl Clone for Text
[src]
impl Debug for Text
[src]
impl Display for Text
[src]
impl From<Text> for String
[src]
impl PartialEq<Text> for Text
[src]
impl StructuralPartialEq for Text
[src]
Auto Trait Implementations
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,