[−][src]Function text_loading_animation::show_loading_animation
pub fn show_loading_animation(
from: usize,
to: usize,
target: Destination,
progress_fn: &dyn Fn() -> usize,
fn_kind: ProgressFnKind
)
Displays a loading animation on stdout. From and To are both values that are not necessarily percent. They describe to problem range, e.g. copy files 1000 to 2000.
One must provide a function that returns the progress in percent at any given time.