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

Creates a new Counter starting with the given value.

fn get(&self) -> usize

Retrieves the current progress value.

fn set(&self, value: usize)

Sets the current progress value.

fn tick(&self, ticks: usize)

Increase the current progress by ticks.

Trait Implementations

impl Clone for Counter
[src]

fn clone(&self) -> Counter

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