[][src]Struct txttyp::Text

pub struct Text { /* fields omitted */ }

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]

pub fn hidden(self) -> Self[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.