Increment the progress bar by the specified amount and write the progress # Arguments `delta` - The amount to increment the progress bar by
(&mut self, delta: u64)
| 120 | /// * `delta` - The amount to increment the progress bar by |
| 121 | /// |
| 122 | pub fn write_increment(&mut self, delta: u64) { |
| 123 | if self.format == ProgressFormat::None { |
| 124 | return; |
| 125 | } |
| 126 | |
| 127 | self.progress_value.completed_items += delta; |
| 128 | if self.format == ProgressFormat::Json { |
| 129 | self.write_json(); |
| 130 | } else { |
| 131 | self.console_bar.pb_inc(delta); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | /// Set the resource being operated on |
| 136 | /// |
no test coverage detected