Trait stati::prelude::__stati_IteratorProgress
source · [−]pub trait __stati_IteratorProgress {
fn set_progress(&mut self, progress: usize);
fn set_size_hint(&mut self, max: usize);
}
Expand description
Bars that accept a precentage for the Progress type (represented as usize)
bars like this should generaly use 100% (100usize
) for completed,
This should be implemented for types that fit these conditions and are ok to use as such
Required methods
fn set_progress(&mut self, progress: usize)
fn set_progress(&mut self, progress: usize)
set items iterated through.
fn set_size_hint(&mut self, max: usize)
fn set_size_hint(&mut self, max: usize)
set the hint for the maximum size