Struct stybulate::Headers [−][src]
pub struct Headers { /* fields omitted */ }
Expand description
The Headers structure is a list of headers (per column)
Example
use stybulate::{AsciiEscapedString, Headers};
// simple example with only strings
let simple = Headers::from(vec!["foo", "bar"]);
// more elaborated example with a mix of a styled string and a simple string
let mut with_style = Headers::with_capacity(2);
with_style
.push(AsciiEscapedString::from("\x1b[1;35mfoo\x1b[0m bar"))
.push(String::from("baz"));
Implementations
Headers constructor with capacity