Struct ignite::aesthetics::CLI [−][src]
pub struct CLI { /* fields omitted */ }
A struct containing some basic terminal info to serve as a basis for CLI aesthetics.
Methods
impl CLI
[src]
impl CLI
pub fn new() -> CLI
[src]
pub fn new() -> CLI
Create a new CLI struct.
pub fn update(&mut self)
[src]
pub fn update(&mut self)
Update the terminal dimensions.
pub fn border_horizontal(&self, border_char: char, length_mult: f32) -> String
[src]
pub fn border_horizontal(&self, border_char: char, length_mult: f32) -> String
Create a horizontal border with a length multiplier. A multiplier of 0.5 would for example result in a border half the length of the terminal.
Trait Implementations
impl Debug for CLI
[src]
impl Debug for CLI
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CLI
[src]
impl Clone for CLI