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
Text(Text)
Table(Table)
Methods
impl El
[src]
fn plain(t: String) -> El
[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.
fn set_plain(&mut self)
[src]
Recursively clears all formatting.
fn paint<W: Write>(&self, w: &mut W) -> Result<()>
[src]
Paint (render) the item into the writer.