#[non_exhaustive]pub struct StashGraph {
pub packages: Vec<PackageStash>,
pub inheritance_edges: Vec<PackageInheritanceEdge>,
pub export_declarations: Vec<ExportDeclaration>,
pub dynamic_boundaries: Vec<StashDynamicBoundary>,
}Expand description
HIR-local package stash graph for compiler-substrate proof.
This graph is intentionally parser-core-local. It records package/stash facts with provenance and confidence, but no LSP provider consumes it yet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.packages: Vec<PackageStash>Package stashes in stable first-seen order.
inheritance_edges: Vec<PackageInheritanceEdge>Inheritance edges in stable source order.
export_declarations: Vec<ExportDeclaration>Static Exporter-style declarations in stable source order.
dynamic_boundaries: Vec<StashDynamicBoundary>Dynamic stash boundaries in stable source order.
Implementations§
Source§impl StashGraph
impl StashGraph
Sourcepub fn export_sets(&self) -> Vec<ExportSet>
pub fn export_sets(&self) -> Vec<ExportSet>
Project static HIR/stash export declarations into canonical export facts.
This is a compiler-substrate projection only. It does not execute Perl, inspect the filesystem, or change workspace/LSP provider behavior.
Trait Implementations§
Source§impl Clone for StashGraph
impl Clone for StashGraph
Source§fn clone(&self) -> StashGraph
fn clone(&self) -> StashGraph
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 StashGraph
impl Debug for StashGraph
Source§impl Default for StashGraph
impl Default for StashGraph
Source§fn default() -> StashGraph
fn default() -> StashGraph
Returns the “default value” for a type. Read more
Source§impl PartialEq for StashGraph
impl PartialEq for StashGraph
Source§fn eq(&self, other: &StashGraph) -> bool
fn eq(&self, other: &StashGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StashGraph
impl StructuralPartialEq for StashGraph
Auto Trait Implementations§
impl Freeze for StashGraph
impl RefUnwindSafe for StashGraph
impl Send for StashGraph
impl Sync for StashGraph
impl Unpin for StashGraph
impl UnsafeUnpin for StashGraph
impl UnwindSafe for StashGraph
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