pub fn toggleable_progress_bar(&self, prefix: &str, size: usize) -> ProgressBar {
        if self.display_progress {
            Self::progress_bar(prefix, size)
        } else {
            ProgressBar::hidden()
        }
    }
/// Generate a progress bar with configurable message
///
/// This takes into account the `display_progress` flag
Generate a progress bar with configurable message
This takes into account the `display_progress` flag
Generate a progress bar with configurable message This takes into account the ` display_progress ` flag
pub fn toggleable_progress_bar(&self, prefix: &str, size: usize) -> ProgressBar {
        if self.display_progress {
            Self::progress_bar(prefix, size)
        } else {
            ProgressBar::hidden()
        }
    }
pub fn toggleable_progress_bar ( & self , prefix : & str , size : usize ) -> ProgressBar { if self . display_progress { Self :: progress_bar ( prefix , size ) } else { ProgressBar :: hidden ( ) } }
Generate a progress bar with configurable message
This takes into account the `display_progress` flag
Generate a progress bar with configurable message This takes into account the ` display_progress ` flag
&self
prefix
&str
size
usize
&self
prefix
&str
size
usize