Struct peter::Styled[][src]

pub struct Styled<T> { /* fields omitted */ }

Wraps something in a Style.

Implementations

impl<T> Styled<T>[src]

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

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

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

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

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

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

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

pub fn fg(self, color: Color) -> Self[src]

pub fn on(self, color: Color) -> 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 fixed(self, n: u8) -> Self[src]

pub fn rgb(self, r: u8, g: u8, b: u8) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Styled<T>[src]

impl<T: Copy> Copy for Styled<T>[src]

impl<T: Debug> Debug for Styled<T>[src]

impl<T> Deref for Styled<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Styled<T>[src]

impl<T: Display> Display for Styled<T>[src]

impl<T: PartialEq> PartialEq<Styled<T>> for Styled<T>[src]

impl<T> StructuralPartialEq for Styled<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Styled<T> where
    T: RefUnwindSafe

impl<T> Send for Styled<T> where
    T: Send

impl<T> Sync for Styled<T> where
    T: Sync

impl<T> Unpin for Styled<T> where
    T: Unpin

impl<T> UnwindSafe for Styled<T> where
    T: UnwindSafe

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> Stylize<T> for T where
    T: Display
[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.