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<SerialPlan, SerialPlanError>
pub fn try_new( rows: BTreeMap<RowInstanceId, RowForm>, events: BTreeMap<SerialEventId, PlannedSerialEvent>, precedence_edges: impl IntoIterator<Item = (SerialEventId, SerialEventId)>, ) -> Result<SerialPlan, 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more