pub enum OutputElement {
    Attribute(AttributeChange),
    AllAttributes(CellAttributes),
    Text(String),
}
Expand description

The OutputElement type allows returning graphic attribute changes as well as textual output.

Variants

Attribute(AttributeChange)

Change a single attribute

AllAttributes(CellAttributes)

Change all possible attributes to the given set of values

Text(String)

Printable text. Control characters are rendered inert by transforming them to space. CR and LF characters are interpreted by moving the cursor position. CR moves the cursor to the start of the line and LF moves the cursor down to the next line. You typically want to use both together when sending in a line break.

Trait Implementations

Converts this type into the (usually inferred) input type.

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.

Should always be Self

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.