pub struct DeclaredModulePartition { /* private fields */ }Expand description
Which container owns each node, and which nodes each container owns.
Derived once per analysis. Both views come from one walk, so an owner and a membership list can never disagree.
Implementations§
Source§impl DeclaredModulePartition
impl DeclaredModulePartition
Sourcepub fn owner(&self, node: GraphNodeId) -> Option<GraphNodeId>
pub fn owner(&self, node: GraphNodeId) -> Option<GraphNodeId>
The nearest container above one node, which is the node itself when it is a container.
Sourcepub fn roots(&self) -> &[GraphNodeId] ⓘ
pub fn roots(&self) -> &[GraphNodeId] ⓘ
Every partition root, in node-id order.
Sourcepub fn members(&self, root: GraphNodeId) -> Option<&[GraphNodeId]>
pub fn members(&self, root: GraphNodeId) -> Option<&[GraphNodeId]>
Every node one root owns, in node-id order, including the root itself.
Auto Trait Implementations§
impl Freeze for DeclaredModulePartition
impl RefUnwindSafe for DeclaredModulePartition
impl Send for DeclaredModulePartition
impl Sync for DeclaredModulePartition
impl Unpin for DeclaredModulePartition
impl UnsafeUnpin for DeclaredModulePartition
impl UnwindSafe for DeclaredModulePartition
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