pub struct CpmSolver {
pub resource_leveling: bool,
pub status_date_override: Option<NaiveDate>,
}Expand description
CPM-based scheduler
Fields§
§resource_leveling: boolWhether to perform resource leveling
status_date_override: Option<NaiveDate>CLI-specified status date override (RFC-0004) Takes precedence over project.status_date per C-01
Implementations§
Source§impl CpmSolver
impl CpmSolver
pub fn new() -> Self
Sourcepub fn with_leveling() -> Self
pub fn with_leveling() -> Self
Create a solver with resource leveling enabled
Sourcepub fn with_status_date(date: NaiveDate) -> Self
pub fn with_status_date(date: NaiveDate) -> Self
Create a solver with a specific status date (RFC-0004) This overrides project.status_date per C-01: –as-of CLI > project.status_date > today()
Sourcepub fn effective_status_date(&self, project: &Project) -> NaiveDate
pub fn effective_status_date(&self, project: &Project) -> NaiveDate
Resolve effective status date per C-01:
- CLI –as-of (status_date_override)
- project.status_date
- today()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpmSolver
impl RefUnwindSafe for CpmSolver
impl Send for CpmSolver
impl Sync for CpmSolver
impl Unpin for CpmSolver
impl UnwindSafe for CpmSolver
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