pub struct IncludeNode { /* private fields */ }Expand description
One visited project occurrence in an IncludeResolution.
A repeated identity is retained as a separate occurrence when it is reached by distinct non-cyclic edges. Traversal intentionally does not cache those diamonds.
Implementations§
Source§impl IncludeNode
impl IncludeNode
Sourcepub const fn index(&self) -> usize
pub const fn index(&self) -> usize
Returns this occurrence’s stable index within IncludeResolution::nodes.
Sourcepub const fn identity(&self) -> &IncludeIdentity
pub const fn identity(&self) -> &IncludeIdentity
Returns this occurrence’s caller-defined identity.
Sourcepub const fn inputs(&self) -> &IncludedProjectInput
pub const fn inputs(&self) -> &IncludedProjectInput
Returns the complete caller-created input retained for this occurrence.
Sourcepub fn origins(&self) -> &[DocumentOrigin]
pub fn origins(&self) -> &[DocumentOrigin]
Returns source origins in the input’s merge order.
Sourcepub const fn loaded_project(&self) -> Option<&LoadedProject>
pub const fn loaded_project(&self) -> Option<&LoadedProject>
Returns the ordered loaded project when no fatal load boundary failed.
Sourcepub const fn merged_project(&self) -> Option<&MergedProject>
pub const fn merged_project(&self) -> Option<&MergedProject>
Returns the authored, no-interpolation merge when a mapping-root project was available.
Sourcepub const fn project_view(&self) -> Option<&ProjectView>
pub const fn project_view(&self) -> Option<&ProjectView>
Returns the effective typed project view used to discover child include declarations.
Trait Implementations§
Source§impl Clone for IncludeNode
impl Clone for IncludeNode
Source§fn clone(&self) -> IncludeNode
fn clone(&self) -> IncludeNode
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 moreSource§impl Debug for IncludeNode
impl Debug for IncludeNode
impl Eq for IncludeNode
Source§impl PartialEq for IncludeNode
impl PartialEq for IncludeNode
impl StructuralPartialEq for IncludeNode
Auto Trait Implementations§
impl Freeze for IncludeNode
impl RefUnwindSafe for IncludeNode
impl Send for IncludeNode
impl Sync for IncludeNode
impl Unpin for IncludeNode
impl UnsafeUnpin for IncludeNode
impl UnwindSafe for IncludeNode
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