pub struct ModuleNode {
pub path: CompactString,
pub state: NodeState,
pub out: Vec<ImportEdge>,
pub config_dependencies: Vec<CompactString>,
/* private fields */
}Expand description
One occupied module-graph slot.
Fields§
§path: CompactStringCanonical path used as the graph key.
state: NodeStateWhether this path is analyzed or only a resolution stub.
out: Vec<ImportEdge>Outgoing imports in extraction order.
config_dependencies: Vec<CompactString>Deduplicated resolver configuration paths consulted by outgoing edges.
Implementations§
Source§impl ModuleNode
impl ModuleNode
Sourcepub fn resolved_generation(&self) -> Option<u64>
pub fn resolved_generation(&self) -> Option<u64>
Resolver generation at which this analyzed node’s edges were produced.
Sourcepub fn imports_supported(&self) -> bool
pub fn imports_supported(&self) -> bool
Whether import extraction was available when this node was upserted.
Sourcepub fn resolver_live(&self) -> bool
pub fn resolver_live(&self) -> bool
Whether the matching resolver was live when this node was resolved.
Sourcepub fn resolution_complete(&self) -> bool
pub fn resolution_complete(&self) -> bool
Whether every outgoing edge was produced by a complete resolution.
Trait Implementations§
Source§impl Clone for ModuleNode
impl Clone for ModuleNode
Source§fn clone(&self) -> ModuleNode
fn clone(&self) -> ModuleNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModuleNode
impl RefUnwindSafe for ModuleNode
impl Send for ModuleNode
impl Sync for ModuleNode
impl Unpin for ModuleNode
impl UnsafeUnpin for ModuleNode
impl UnwindSafe for ModuleNode
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