[][src]Struct mdcat::TerminalCapabilities

pub struct TerminalCapabilities {
    pub name: String,
    pub style: StyleCapability,
    pub links: LinkCapability,
    pub image: ImageCapability,
    pub marks: MarkCapability,
}

The capabilities of a terminal.

Fields

name: String

How do we call this terminal?

style: StyleCapability

How the terminal supports basic styling.

links: LinkCapability

How the terminal supports links.

image: ImageCapability

How the terminal supports images.

marks: MarkCapability

How the terminal supports marks.

Implementations

impl TerminalCapabilities[src]

pub fn none() -> TerminalCapabilities[src]

A terminal which supports nothing.

pub fn ansi() -> TerminalCapabilities[src]

A terminal with basic ANSI formatting only.

pub fn detect() -> TerminalCapabilities[src]

Detect the capabilities of the current terminal.

Trait Implementations

impl Debug for TerminalCapabilities[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

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.