[][src]Struct mdcat::AnsiStyle

pub struct AnsiStyle;

Access to a terminal’s basic ANSI styling functionality.

Implementations

impl AnsiStyle[src]

pub fn write_styled<W: Write, V: AsRef<str>>(
    self,
    write: &mut W,
    style: &Style,
    text: V
) -> Result<()>
[src]

Write styled text to the given writer.

Trait Implementations

impl Clone for AnsiStyle[src]

impl Copy for AnsiStyle[src]

impl Debug for AnsiStyle[src]

impl PartialEq<AnsiStyle> for AnsiStyle[src]

impl StructuralPartialEq for AnsiStyle[src]

Auto Trait Implementations

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> Instrument 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, 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.