Struct indicatif::DrawState
[−]
[src]
pub struct DrawState { pub lines: Vec<String>, pub finished: bool, pub force_draw: bool, pub ts: Instant, }
The drawn state of an element.
Fields
lines: Vec<String>
The lines to print (can contain ANSI codes)
finished: bool
True if the bar no longer needs drawing.
force_draw: bool
True if drawing should be forced.
ts: Instant
Time when the draw state was created.
Methods
impl DrawState
[src]
fn clear_term(&self, term: &Term) -> Result<()>
fn draw_to_term(&self, term: &Term) -> Result<()>
Trait Implementations
impl Clone for DrawState
[src]
fn clone(&self) -> DrawState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more