[][src]Trait mdcat::Terminal

pub trait Terminal {
    type TerminalWrite: Write;
    fn name(&self) -> &str;
fn write(&mut self) -> &mut Self::TerminalWrite;
fn supports_styles(&self) -> bool;
fn set_link(&mut self, destination: &str) -> Result<(), Error>;
fn set_mark(&mut self) -> Result<(), Error>;
fn write_inline_image(
        &mut self,
        max_size: Size,
        resource: &Resource,
        access: ResourceAccess
    ) -> Result<(), Error>; }

Write to terminals.

Associated Types

The associated writer of this terminal.

Required Methods

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.

To stop a link write a link with an empty destination.

The default implementation errors with NotSupportedError.

Set a jump mark on the terminal.

The default implementation errors with NotSupportedError.

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

The default implementation errors with NotSupportedError.

Implementors

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

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