Enum termstyle::El [] [src]

pub enum El {
    Text(Text),
    Table(Table),
}

A Element that can be rendered as styled+formatted text using paint().

Elements are simply struts with various properties which you can build directly or parse from text.

Variants

Methods

impl El
[src]

[src]

Instantiate the element as just plain text.

This is a shortcut method for El::Text(Text::new(t)). In general you should use El::Text or El::Table instead.

[src]

Recursively clears all formatting.

[src]

Paint (render) the item into the writer.

Trait Implementations

impl Debug for El
[src]

[src]

Formats the value using the given formatter.

impl Eq for El
[src]

impl PartialEq for El
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.