pub struct Contingent<'a> {
pub activity: ActivityId,
pub window: Window,
pub duration: Window,
pub impacts: &'a [Uncertain],
}Expand description
An activity whose start lies in a window and whose duration lies in a range, as for a contingent link of a simple temporal network with uncertainty.
The envelope covers every combination of a start in window and a duration in duration,
chosen independently per activity: the start by the dispatcher, the duration by nature. See
Envelope::with_contingent for an example.
Fields§
§activity: ActivityIdThe activity, reported back in explanations.
window: WindowThe allowed starts.
duration: WindowThe possible durations [shortest, longest]. Never negative.
impacts: &'a [Uncertain]The effects of the activity, anchored at its start or end.
Trait Implementations§
Source§impl<'a> Clone for Contingent<'a>
impl<'a> Clone for Contingent<'a>
impl<'a> Copy for Contingent<'a>
Source§impl<'a> Debug for Contingent<'a>
impl<'a> Debug for Contingent<'a>
impl<'a> Eq for Contingent<'a>
Source§impl<'a> Hash for Contingent<'a>
impl<'a> Hash for Contingent<'a>
Source§impl<'a> PartialEq for Contingent<'a>
impl<'a> PartialEq for Contingent<'a>
impl<'a> StructuralPartialEq for Contingent<'a>
Auto Trait Implementations§
impl<'a> Forget for Contingent<'a>
impl<'a> Freeze for Contingent<'a>
impl<'a> Move for Contingent<'a>
impl<'a> RefUnwindSafe for Contingent<'a>
impl<'a> Send for Contingent<'a>
impl<'a> Sync for Contingent<'a>
impl<'a> Unpin for Contingent<'a>
impl<'a> UnsafeUnpin for Contingent<'a>
impl<'a> UnwindSafe for Contingent<'a>
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