pub struct SchedulingProblem {
pub intervals: Vec<Interval>,
pub capacity: i64,
pub disjunctive: bool,
}Expand description
A scheduling problem
Fields§
§intervals: Vec<Interval>Tasks to schedule
capacity: i64Resource capacity (for cumulative)
disjunctive: boolWhether tasks are disjunctive (no overlap)
Implementations§
Source§impl SchedulingProblem
impl SchedulingProblem
Sourcepub fn disjunctive(intervals: Vec<Interval>) -> Self
pub fn disjunctive(intervals: Vec<Interval>) -> Self
Create a disjunctive scheduling problem
Sourcepub fn cumulative(intervals: Vec<Interval>, capacity: i64) -> Self
pub fn cumulative(intervals: Vec<Interval>, capacity: i64) -> Self
Create a cumulative scheduling problem
Trait Implementations§
Source§impl Clone for SchedulingProblem
impl Clone for SchedulingProblem
Source§fn clone(&self) -> SchedulingProblem
fn clone(&self) -> SchedulingProblem
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 SchedulingProblem
impl Debug for SchedulingProblem
Source§impl<'de> Deserialize<'de> for SchedulingProblem
impl<'de> Deserialize<'de> for SchedulingProblem
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
Auto Trait Implementations§
impl Freeze for SchedulingProblem
impl RefUnwindSafe for SchedulingProblem
impl Send for SchedulingProblem
impl Sync for SchedulingProblem
impl Unpin for SchedulingProblem
impl UnsafeUnpin for SchedulingProblem
impl UnwindSafe for SchedulingProblem
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