[][src]Struct rawcmd_style::Style

pub struct Style { /* fields omitted */ }

Style structure which represents a formatted command-line string.

Methods

impl Style[src]

Style structure implementation.

pub fn new(txt: &str) -> Self[src]

Returns a new instance.

pub fn bold(self) -> Self[src]

Applies bold style.

pub fn dim(self) -> Self[src]

Applies dim style.

pub fn italic(self) -> Self[src]

Applies italic style.

pub fn underline(self) -> Self[src]

Applies underline style.

Applies blink style.

pub fn inverse(self) -> Self[src]

Applies inverse style.

pub fn hidden(self) -> Self[src]

Applies hidden style.

pub fn black(self) -> Self[src]

Applies black style.

pub fn red(self) -> Self[src]

Applies red style.

pub fn green(self) -> Self[src]

Applies green style.

pub fn yellow(self) -> Self[src]

Applies yellow style.

pub fn blue(self) -> Self[src]

Applies blue style.

pub fn magenta(self) -> Self[src]

Applies magenta style.

pub fn cyan(self) -> Self[src]

Applies cyan style.

pub fn white(self) -> Self[src]

Applies white style.

pub fn bgblack(self) -> Self[src]

Applies bgblack style.

pub fn bgred(self) -> Self[src]

Applies bgred style.

pub fn bggreen(self) -> Self[src]

Applies bggreen style.

pub fn bgyellow(self) -> Self[src]

Applies bgyellow style.

pub fn bgblue(self) -> Self[src]

Applies bgblue style.

pub fn bgmagenta(self) -> Self[src]

Applies bgmagenta style.

pub fn bgcyan(self) -> Self[src]

Applies bgcyan style.

pub fn bgwhite(self) -> Self[src]

Applies bgwhite style.

pub fn clean(self) -> Self[src]

Removes all styles.

Trait Implementations

impl Clone for Style[src]

impl Debug for Style[src]

impl Display for Style[src]

Style structure implementation.

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats the user-facing output.

impl PartialEq<Style> for Style[src]

impl StructuralPartialEq for Style[src]

Auto Trait Implementations

impl RefUnwindSafe for Style

impl Send for Style

impl Sync for Style

impl Unpin for Style

impl UnwindSafe for Style

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.