[−][src]Struct prodash::tree::Progress
Progress associated with some item in the progress tree.
Fields
step: ProgressStep
The amount of progress currently made
done_at: Option<ProgressStep>
The step at which no further progress has to be made.
If unset, the progress is unbounded.
unit: Option<&'static str>
The unit associated with the progress.
state: ProgressState
Whether progress can be made or not
Methods
impl Progress
[src]
pub fn fraction(&self) -> Option<f32>
[src]
Returns a number between Some(0.0)
and Some(1.0)
, or None
if the progress is unbounded.
A task half done would return Some(0.5)
.
Trait Implementations
impl Clone for Progress
[src]
impl Copy for Progress
[src]
impl Debug for Progress
[src]
impl Default for Progress
[src]
impl Eq for Progress
[src]
impl Hash for Progress
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Progress
[src]
fn cmp(&self, other: &Progress) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Progress> for Progress
[src]
impl PartialOrd<Progress> for Progress
[src]
fn partial_cmp(&self, other: &Progress) -> Option<Ordering>
[src]
fn lt(&self, other: &Progress) -> bool
[src]
fn le(&self, other: &Progress) -> bool
[src]
fn gt(&self, other: &Progress) -> bool
[src]
fn ge(&self, other: &Progress) -> bool
[src]
impl StructuralEq for Progress
[src]
impl StructuralPartialEq for Progress
[src]
Auto Trait Implementations
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnwindSafe for Progress
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,