pub struct SimpleBar { /* private fields */ }
Expand description

A simple progress bar implementation, based off that of the progress crates progresbar

Implementations

name: the name of the job

hint: hint for the maximum value this will reach

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Some implementation details:

starts with “\r” and has no end char

if it cannot get the real term size, uses 81 as the size

Finishes the Bar, allowing it to be finalized and dropped by the manager according to the close method returned by close_method. The bar should not be used after this is called. Read more

Checks if the Bar is done (IsBar::done as been called) Read more

Returns how the bar should be handled by the BarManager after done is called Read more

Sets the current progress (number of items iterated through)

sets a hint for the maximum value set_progress will ever reach Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.