pub struct ThreePointEstimate {
pub optimistic_hours: f64,
pub likely_hours: f64,
pub pessimistic_hours: f64,
}Expand description
Ordered non-negative duration estimates in elapsed hours.
Fields§
§optimistic_hours: f64Optimistic duration in elapsed hours.
likely_hours: f64Most-likely duration in elapsed hours.
pessimistic_hours: f64Pessimistic duration in elapsed hours.
Implementations§
Source§impl ThreePointEstimate
impl ThreePointEstimate
Sourcepub fn validate(self) -> Result<(), EstimateError>
pub fn validate(self) -> Result<(), EstimateError>
Reject non-finite, negative, or unordered duration bounds.
Sourcepub fn pert_expected_hours(self) -> f64
pub fn pert_expected_hours(self) -> f64
Weighted PERT estimate in elapsed hours.
Trait Implementations§
Source§impl Clone for ThreePointEstimate
impl Clone for ThreePointEstimate
impl Copy for ThreePointEstimate
Source§impl Debug for ThreePointEstimate
impl Debug for ThreePointEstimate
Source§impl<'de> Deserialize<'de> for ThreePointEstimate
impl<'de> Deserialize<'de> for ThreePointEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreePointEstimate
impl PartialEq for ThreePointEstimate
Source§impl Serialize for ThreePointEstimate
impl Serialize for ThreePointEstimate
impl StructuralPartialEq for ThreePointEstimate
Auto Trait Implementations§
impl Freeze for ThreePointEstimate
impl RefUnwindSafe for ThreePointEstimate
impl Send for ThreePointEstimate
impl Sync for ThreePointEstimate
impl Unpin for ThreePointEstimate
impl UnsafeUnpin for ThreePointEstimate
impl UnwindSafe for ThreePointEstimate
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