pub enum Demand {
Level {
timeline: TimelineId,
impact: Impact,
},
State {
timeline: StateId,
impact: StateImpact,
},
}Expand description
One effect of an activity on one timeline of a plan, with ticks relative to the activity start.
An activity that draws 4 power units for its first 10 ticks is
Demand::Level { timeline: power, impact: Impact::Claim { start: 0, end: 10, amount: 4 } }.
Variants§
Level
An effect on a numeric timeline.
Fields
§
timeline: TimelineIdThe timeline affected.
State
An effect on a state timeline.
Fields
§
impact: StateImpactThe effect, with ticks relative to the activity start.
Trait Implementations§
impl Copy for Demand
impl Eq for Demand
impl StructuralPartialEq for Demand
Auto Trait Implementations§
impl Forget for Demand
impl Freeze for Demand
impl Move for Demand
impl RefUnwindSafe for Demand
impl Send for Demand
impl Sync for Demand
impl Unpin for Demand
impl UnsafeUnpin for Demand
impl UnwindSafe for Demand
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