pub struct Graph<'a> { /* private fields */ }Implementations§
Source§impl<'a> Graph<'a>
impl<'a> Graph<'a>
Sourcepub fn new(config: &'a RepoConfig) -> Result<Self, GraphError>
pub fn new(config: &'a RepoConfig) -> Result<Self, GraphError>
Build from scope’s resolved relations without reading files or running code.
pub fn artifacts(&self) -> &BTreeMap<ArtifactName, ArtifactNode<'a>>
Sourcepub fn components(&self) -> &[Component<'a>]
pub fn components(&self) -> &[Component<'a>]
Components are dependency-first; members and gates are lexically ordered.
Sourcepub fn dependency_closure(
&self,
roots: &[&ArtifactName],
) -> Result<Vec<&'a ArtifactName>, GraphError>
pub fn dependency_closure( &self, roots: &[&ArtifactName], ) -> Result<Vec<&'a ArtifactName>, GraphError>
Required material and verification, including roots and all cycle peers.
Sourcepub fn evaluate(&self, evidence: &BTreeMap<EvalId, Evidence>) -> Evaluation<'_>
pub fn evaluate(&self, evidence: &BTreeMap<EvalId, Evidence>) -> Evaluation<'_>
Evaluate the whole graph. Evidence freshness is supplied by the caller; absent entries are unreviewed, and unrelated entries are ignored.
pub fn eval_target(&self, id: &str) -> Option<&'a ArtifactName>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Graph<'a>
impl<'a> RefUnwindSafe for Graph<'a>
impl<'a> Send for Graph<'a>
impl<'a> Sync for Graph<'a>
impl<'a> Unpin for Graph<'a>
impl<'a> UnsafeUnpin for Graph<'a>
impl<'a> UnwindSafe for Graph<'a>
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