fn drop(&mut self) {
        if !self.pbar.is_finished() {
            let value = self.counter.get() as u64;
            self.pbar.set_position(value);
            self.pbar.finish_and_clear();
        }
    }
/// make sure we clear bars when the object is dropped
make sure we clear bars when the object is dropped
make sure we clear bars when the object is dropped
fn drop(&mut self) {
        if !self.pbar.is_finished() {
            let value = self.counter.get() as u64;
            self.pbar.set_position(value);
            self.pbar.finish_and_clear();
        }
    }
fn drop ( & mut self ) { if ! self . pbar . is_finished ( ) { let value = self . counter . get ( ) as u64 ; self . pbar . set_position ( value ) ; self . pbar . finish_and_clear ( ) ; } }
make sure we clear bars when the object is dropped
make sure we clear bars when the object is dropped
&mut self
&mut self