diff --git a/src/progress_bar.rs b/src/progress_bar.rs index 44fc1a79..f4dc6178 100644 --- a/src/progress_bar.rs +++ b/src/progress_bar.rs @@ -54,6 +54,11 @@ impl ProgressBar { } } + /// Get a clone of the current progress bar style. + pub fn style(self) -> &ProgressStyle { + self.state().style.clone() + } + /// A convenience builder-like function for a progress bar with a given style pub fn with_style(self, mut style: ProgressStyle) -> ProgressBar { let mut state = self.state();