pub struct ProgressStage { /* private fields */ }Expand description
Describes the current stage of a multi-stage operation.
Implementations§
Source§impl ProgressStage
impl ProgressStage
Sourcepub const fn with_index(self, index: usize) -> Self
pub const fn with_index(self, index: usize) -> Self
Sourcepub const fn with_total_stages(self, total_stages: usize) -> Self
pub const fn with_total_stages(self, total_stages: usize) -> Self
Sourcepub const fn with_weight(self, weight: f64) -> Self
pub const fn with_weight(self, weight: f64) -> Self
Sourcepub const fn index(&self) -> Option<usize>
pub const fn index(&self) -> Option<usize>
Returns the stage index when known.
§Returns
Some(index) when a zero-based stage index was supplied, otherwise
None.
Sourcepub const fn total_stages(&self) -> Option<usize>
pub const fn total_stages(&self) -> Option<usize>
Returns the total stage count when known.
§Returns
Some(total) when a total stage count was supplied, otherwise None.
Trait Implementations§
Source§impl Clone for ProgressStage
impl Clone for ProgressStage
Source§fn clone(&self) -> ProgressStage
fn clone(&self) -> ProgressStage
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 ProgressStage
impl Debug for ProgressStage
Source§impl PartialEq for ProgressStage
impl PartialEq for ProgressStage
impl StructuralPartialEq for ProgressStage
Auto Trait Implementations§
impl Freeze for ProgressStage
impl RefUnwindSafe for ProgressStage
impl Send for ProgressStage
impl Sync for ProgressStage
impl Unpin for ProgressStage
impl UnsafeUnpin for ProgressStage
impl UnwindSafe for ProgressStage
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