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