pub struct ProjectGraph {
pub nodes: BTreeMap<String, Node>,
pub dependencies: BTreeMap<String, Vec<Dependency>>,
}Fields§
§nodes: BTreeMap<String, Node>§dependencies: BTreeMap<String, Vec<Dependency>>Implementations§
Source§impl ProjectGraph
impl ProjectGraph
pub fn build(workspace: &Workspace) -> Result<Self>
Sourcepub fn dependents_of(
&self,
projects: &BTreeSet<String>,
) -> Result<BTreeSet<String>>
pub fn dependents_of( &self, projects: &BTreeSet<String>, ) -> Result<BTreeSet<String>>
Return transitive dependents, including the original projects.
The project, the projects it depends on and the projects depending on
it, transitively: the projects nx graph --focus keeps.
Trait Implementations§
Source§impl Clone for ProjectGraph
impl Clone for ProjectGraph
Source§impl Debug for ProjectGraph
impl Debug for ProjectGraph
Auto Trait Implementations§
impl Freeze for ProjectGraph
impl RefUnwindSafe for ProjectGraph
impl Send for ProjectGraph
impl Sync for ProjectGraph
impl Unpin for ProjectGraph
impl UnsafeUnpin for ProjectGraph
impl UnwindSafe for ProjectGraph
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