pub struct SerialPlan { /* private fields */ }Expand description
Immutable structural source for serial practice.
Implementations§
Source§impl SerialPlan
impl SerialPlan
Sourcepub fn try_new(
rows: BTreeMap<RowInstanceId, RowForm>,
events: BTreeMap<SerialEventId, PlannedSerialEvent>,
precedence_edges: impl IntoIterator<Item = (SerialEventId, SerialEventId)>,
) -> Result<Self, SerialPlanError>
pub fn try_new( rows: BTreeMap<RowInstanceId, RowForm>, events: BTreeMap<SerialEventId, PlannedSerialEvent>, precedence_edges: impl IntoIterator<Item = (SerialEventId, SerialEventId)>, ) -> Result<Self, SerialPlanError>
Validates and freezes one complete serial plan.
Sourcepub fn rows(&self) -> &BTreeMap<RowInstanceId, RowForm>
pub fn rows(&self) -> &BTreeMap<RowInstanceId, RowForm>
Returns the immutable row instances by stable id.
Sourcepub fn events(&self) -> &BTreeMap<SerialEventId, PlannedSerialEvent>
pub fn events(&self) -> &BTreeMap<SerialEventId, PlannedSerialEvent>
Returns the immutable planned events by stable id.
Sourcepub fn event(&self, event_id: &SerialEventId) -> Option<&PlannedSerialEvent>
pub fn event(&self, event_id: &SerialEventId) -> Option<&PlannedSerialEvent>
Returns one immutable planned event by stable id.
Sourcepub fn row(&self, row_id: &RowInstanceId) -> Option<&RowForm>
pub fn row(&self, row_id: &RowInstanceId) -> Option<&RowForm>
Returns one immutable row form by stable id.
Sourcepub fn precedence(&self) -> &PrecedenceGraph<SerialEventId>
pub fn precedence(&self) -> &PrecedenceGraph<SerialEventId>
Returns the validated precedence DAG.
Sourcepub fn simultaneous_groups(
&self,
) -> BTreeMap<SimultaneousGroupId, Vec<&PlannedSerialEvent>>
pub fn simultaneous_groups( &self, ) -> BTreeMap<SimultaneousGroupId, Vec<&PlannedSerialEvent>>
Returns every simultaneous placement group and its canonical event members.
Trait Implementations§
Source§impl Clone for SerialPlan
impl Clone for SerialPlan
Source§fn clone(&self) -> SerialPlan
fn clone(&self) -> SerialPlan
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 SerialPlan
impl Debug for SerialPlan
impl Eq for SerialPlan
Source§impl PartialEq for SerialPlan
impl PartialEq for SerialPlan
impl StructuralPartialEq for SerialPlan
Auto Trait Implementations§
impl Freeze for SerialPlan
impl RefUnwindSafe for SerialPlan
impl Send for SerialPlan
impl Sync for SerialPlan
impl Unpin for SerialPlan
impl UnsafeUnpin for SerialPlan
impl UnwindSafe for SerialPlan
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