pub struct ResolvedDeclarations(/* private fields */);Expand description
A project’s declarations, checked and projected into signature data by
Declarations::resolve.
A newtype over SignatureDb rather than the bare database, and the
distinction is load-bearing at exactly one boundary: this is the only
signature data the parser accepts. A value of this type can only have come
from a declaration block, so parse_with_declarations cannot be handed a
document’s merged scope — which would make the tree a function of package
scans and scanned definitions, the thing AGENTS.md decision #8 holds the
line on. Keeping the invariant in the type rather than in review is the same
move the formatter’s Gap makes for trivia.
Implementations§
Source§impl ResolvedDeclarations
impl ResolvedDeclarations
Sourcepub fn as_db(&self) -> &SignatureDb
pub fn as_db(&self) -> &SignatureDb
The declared tier as signature data, for merging into a document’s scope (where it is the top tier: a declaration is the user explicitly correcting an inference).
Trait Implementations§
Source§impl Clone for ResolvedDeclarations
impl Clone for ResolvedDeclarations
Source§fn clone(&self) -> ResolvedDeclarations
fn clone(&self) -> ResolvedDeclarations
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more