pub fn default_bounded_progress_bar(
msg: impl Into<Cow<'static, str>>,
len: u64,
) -> ProgressBar
Expand description
Create a new bounded progress bar with the specified message and length. The progress bar will be a bar with a spinner. The progress bar will display the elapsed time, the progress bar, the current position, the total length, and the estimated time remaining.
§Arguments
msg
: The message to display on the progress bar.len
: The total length of the progress bar.
§Returns
A new bounded progress bar.
This will create a new bounded progress bar with the message “Processing sequences” and a total length of 100. The progress bar will be a bar with a spinner.
§Panics
This function will panic if the progress bar style cannot be created.