pub struct SplitSchedulerState { /* private fields */ }Expand description
Mutable planning state for conservative split scheduling.
Implementations§
Source§impl SplitSchedulerState
impl SplitSchedulerState
Sourcepub fn last_split_at(&self, station_id: StationId) -> Option<Tick>
pub fn last_split_at(&self, station_id: StationId) -> Option<Tick>
Returns the last split tick for a source station.
Sourcepub fn record_action(&mut self, action: &SplitAction, tick: Tick)
pub fn record_action(&mut self, action: &SplitAction, tick: Tick)
Records one executed or externally accepted split action.
Sourcepub fn record_schedule(&mut self, schedule: &SplitSchedule, tick: Tick)
pub fn record_schedule(&mut self, schedule: &SplitSchedule, tick: Tick)
Records all actions in a schedule at the same tick.
Sourcepub fn record_schedule_view(
&mut self,
schedule: SplitScheduleView<'_>,
tick: Tick,
)
pub fn record_schedule_view( &mut self, schedule: SplitScheduleView<'_>, tick: Tick, )
Records all actions from a borrowed reusable schedule view.
Trait Implementations§
Source§impl Clone for SplitSchedulerState
impl Clone for SplitSchedulerState
Source§fn clone(&self) -> SplitSchedulerState
fn clone(&self) -> SplitSchedulerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SplitSchedulerState
impl Debug for SplitSchedulerState
Source§impl Default for SplitSchedulerState
impl Default for SplitSchedulerState
Source§fn default() -> SplitSchedulerState
fn default() -> SplitSchedulerState
Returns the “default value” for a type. Read more
impl Eq for SplitSchedulerState
Source§impl PartialEq for SplitSchedulerState
impl PartialEq for SplitSchedulerState
impl StructuralPartialEq for SplitSchedulerState
Auto Trait Implementations§
impl Freeze for SplitSchedulerState
impl RefUnwindSafe for SplitSchedulerState
impl Send for SplitSchedulerState
impl Sync for SplitSchedulerState
impl Unpin for SplitSchedulerState
impl UnsafeUnpin for SplitSchedulerState
impl UnwindSafe for SplitSchedulerState
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