pub struct ProgressBar {
pub total: Option<f64>,
pub completed: f64,
pub width: Option<usize>,
pub pulse: bool,
pub style: String,
pub complete_style: String,
pub finished_style: String,
pub pulse_style: String,
pub animation_time: Option<f64>,
}Fields§
§total: Option<f64>§completed: f64§width: Option<usize>§pulse: bool§style: String§complete_style: String§finished_style: String§pulse_style: String§animation_time: Option<f64>Implementations§
Trait Implementations§
Source§impl Clone for ProgressBar
impl Clone for ProgressBar
Source§fn clone(&self) -> ProgressBar
fn clone(&self) -> ProgressBar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgressBar
impl Debug for ProgressBar
Source§impl Default for ProgressBar
impl Default for ProgressBar
Source§impl Renderable for ProgressBar
impl Renderable for ProgressBar
Source§fn render(&self, _console: &Console, options: &ConsoleOptions) -> Segments
fn render(&self, _console: &Console, options: &ConsoleOptions) -> Segments
Render this object to a sequence of segments.
Source§fn measure(&self, _console: &Console, options: &ConsoleOptions) -> Measurement
fn measure(&self, _console: &Console, options: &ConsoleOptions) -> Measurement
Measure the minimum and maximum width requirements. Read more
Auto Trait Implementations§
impl Freeze for ProgressBar
impl RefUnwindSafe for ProgressBar
impl Send for ProgressBar
impl Sync for ProgressBar
impl Unpin for ProgressBar
impl UnwindSafe for ProgressBar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more