[][src]Struct mdcat::AnsiTerminal

pub struct AnsiTerminal<W: Write> { /* fields omitted */ }

A simple ANSI terminal with support for basic ANSI styles.

This represents most ordinary terminal emulators.

Methods

impl<W: Write> AnsiTerminal<W>
[src]

Create a new ANSI terminal for th given writer.

Write an OSC command to this terminal.

Write a CSI SGR command to this terminal.

See https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_sequences.

Trait Implementations

impl<W: Write> Terminal for AnsiTerminal<W>
[src]

The associated writer of this terminal.

Get a descriptive name for this terminal.

Get a writer for this terminal.

Whether this terminal supports styles.

Set a link to the given destination on the terminal. Read more

Set a jump mark on the terminal. Read more

Write an inline image from the given resource to the terminal. Read more

Auto Trait Implementations

impl<W> Send for AnsiTerminal<W> where
    W: Send

impl<W> Sync for AnsiTerminal<W> where
    W: Sync

Blanket Implementations

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T