pub struct ProjectGraph { /* private fields */ }
Expand description
Describes the project graph
Implementations§
Source§impl ProjectGraph
impl ProjectGraph
Sourcepub fn root_project(&self) -> &ProjectDescriptor
pub fn root_project(&self) -> &ProjectDescriptor
Gets the root project descriptor
Sourcepub fn root_project_mut(&mut self) -> &mut ProjectDescriptor
pub fn root_project_mut(&mut self) -> &mut ProjectDescriptor
Gets a mutable reference to the root project descriptor
pub fn set_default_build_file_name(&mut self, name: &str)
Sourcepub fn project<S, F>(&mut self, path: S, configure: F)
pub fn project<S, F>(&mut self, path: S, configure: F)
Adds a child project to the root project
Sourcepub fn find_project<P>(&self, path: P) -> Option<&ProjectDescriptor>
pub fn find_project<P>(&self, path: P) -> Option<&ProjectDescriptor>
Find a project by path
Sourcepub fn find_project_mut<P>(&mut self, path: P) -> Option<&mut ProjectDescriptor>
pub fn find_project_mut<P>(&mut self, path: P) -> Option<&mut ProjectDescriptor>
Find a project by path
Sourcepub fn children_projects(
&self,
proj: &ProjectDescriptor,
) -> impl IntoIterator<Item = &ProjectDescriptor>
pub fn children_projects( &self, proj: &ProjectDescriptor, ) -> impl IntoIterator<Item = &ProjectDescriptor>
Gets the child project of a given project
pub fn get_project_id(&self, desc: &ProjectDescriptor) -> ProjectId
Trait Implementations§
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 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
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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