pub struct ComponentGraph { /* private fields */ }Expand description
Validated typed component graph with one or more observable outputs.
Implementations§
Source§impl ComponentGraph
impl ComponentGraph
Sourcepub fn new(
units: Vec<ComponentSpec>,
outputs: impl IntoIterator<Item = impl AsRef<str>>,
) -> Result<Self, ComponentGraphError>
pub fn new( units: Vec<ComponentSpec>, outputs: impl IntoIterator<Item = impl AsRef<str>>, ) -> Result<Self, ComponentGraphError>
Validates identities, dependency domains, acyclicity, and outputs.
Sourcepub fn units(&self) -> &[ComponentSpec]
pub fn units(&self) -> &[ComponentSpec]
Returns units in architecture declaration order.
Sourcepub fn execution_order(&self) -> impl Iterator<Item = &ComponentSpec>
pub fn execution_order(&self) -> impl Iterator<Item = &ComponentSpec>
Returns units in dependency-safe execution order.
Sourcepub fn outputs(&self) -> impl Iterator<Item = &ComponentSpec>
pub fn outputs(&self) -> impl Iterator<Item = &ComponentSpec>
Returns graph outputs in declared order.
Sourcepub fn residency_count(&self, class: ComponentResidencyClass) -> usize
pub fn residency_count(&self, class: ComponentResidencyClass) -> usize
Counts components in one residency class.
Trait Implementations§
Source§impl Clone for ComponentGraph
impl Clone for ComponentGraph
Source§fn clone(&self) -> ComponentGraph
fn clone(&self) -> ComponentGraph
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 ComponentGraph
impl Debug for ComponentGraph
impl Eq for ComponentGraph
Source§impl PartialEq for ComponentGraph
impl PartialEq for ComponentGraph
impl StructuralPartialEq for ComponentGraph
Auto Trait Implementations§
impl Freeze for ComponentGraph
impl RefUnwindSafe for ComponentGraph
impl Send for ComponentGraph
impl Sync for ComponentGraph
impl Unpin for ComponentGraph
impl UnsafeUnpin for ComponentGraph
impl UnwindSafe for ComponentGraph
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