Trait UpdateCycle
pub trait UpdateCycle {
// Required methods
fn set_cycle_events(&mut self, events: Vec<CycleEvent>);
fn get_cycle_events(&self) -> &Vec<CycleEvent>;
fn drain_cycle_events(&mut self) -> Drain<'_, CycleEvent>;
fn add_cycle_event(&mut self, event: CycleEvent);
}
Available on crate feature
chili
only.Expand description
Trait which describes how to store intermediate information on the cell cycle.
Required Methods§
fn set_cycle_events(&mut self, events: Vec<CycleEvent>)
fn set_cycle_events(&mut self, events: Vec<CycleEvent>)
Set all cycle events. This function is currently the only way to change the contents of the stored events.
fn get_cycle_events(&self) -> &Vec<CycleEvent>
fn get_cycle_events(&self) -> &Vec<CycleEvent>
Get all cycle events currently stored.
fn drain_cycle_events(&mut self) -> Drain<'_, CycleEvent>
fn drain_cycle_events(&mut self) -> Drain<'_, CycleEvent>
Drain all cycle events
fn add_cycle_event(&mut self, event: CycleEvent)
fn add_cycle_event(&mut self, event: CycleEvent)
Add another cycle event to the storage.