Struct cursive::views::Counter
[−]
[src]
pub struct Counter(pub Arc<AtomicUsize>);
Atomic counter used by ProgressBar
.
Methods
impl Counter
[src]
fn new(value: usize) -> Self
[src]
Creates a new Counter
starting with the given value.
fn get(&self) -> usize
[src]
Retrieves the current progress value.
fn set(&self, value: usize)
[src]
Sets the current progress value.
fn tick(&self, ticks: usize)
[src]
Increase the current progress by ticks
.