Struct simple_bar::ProgressBar
source · [−]pub struct ProgressBar { /* private fields */ }Implementations
sourceimpl ProgressBar
impl ProgressBar
sourcepub fn new(length: usize, progress_char: char, empty_char: char) -> ProgressBar
pub fn new(length: usize, progress_char: char, empty_char: char) -> ProgressBar
Creates a new ProgressBar given:
num_iterations: usizethe number of iterationsprogress_char: charthecharto be printed on the completed spots of the progress barempty_char: charthecharto be printed on the empty spots of the progress bar
sourcepub fn default(length: usize) -> ProgressBar
pub fn default(length: usize) -> ProgressBar
Creates a new ProgressBar with the default chars for the completed and empty spots of the
progress bar, which are: '▅' and ' ' respectively.
Auto Trait Implementations
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnwindSafe for ProgressBar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more