Trait progress_monitor::work::Work
source · pub trait Work: Sized + Debug + Display + Add<Output = Result<Self, AddError>> + Sub<Output = Self> + PartialEq + PartialOrd + Clone {
type Type;
// Required methods
fn new<A: Into<Self::Type>>(value: A) -> Self;
fn zero() -> Self;
fn min<'a>(a: &'a Self, b: &'a Self) -> &'a Self;
fn parent_work_done_when(
sub_work_done: Self,
of_total_sub_work: Self,
of_parent_work: Self
) -> Self;
}