pub struct DependencyGraph { /* private fields */ }Expand description
The graph derived from one validated definition.
Implementations§
Source§impl DependencyGraph
impl DependencyGraph
Sourcepub fn derive(def: &StackDef) -> Result<Self, DefError>
pub fn derive(def: &StackDef) -> Result<Self, DefError>
Derive edges from the definition’s interpolation references.
Call on a validated definition: undeclared references have already been rejected, so lookups here cannot miss.
pub fn nodes(&self) -> &[Node]
pub fn startup_order(&self) -> &[Node]
pub fn wiring(&self) -> &[(Node, Node)]
Trait Implementations§
Source§impl Debug for DependencyGraph
impl Debug for DependencyGraph
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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