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

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§

A terminal which supports nothing.

A terminal with basic ANSI formatting only.

Detect the capabilities of the current terminal.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.