pub enum ResolverGap {
AliasedImport,
Reexport,
AnchoredFile(String),
}Expand description
A resolution limitation the resolver recognised while failing to bind a reference. Recorded by the resolver, which is the only place that knows what it tried, so consumers never have to infer a gap from name shape. The variants are observations, not verdicts: a consumer decides what each one means for its own question.
Variants§
AliasedImport
An as-aliased import in the reference’s own file binds this name.
Resolution did not follow the alias to a definition.
Reexport
The written path anchored to a corpus module whose files re-export through glob/star imports (a barrel). The name may well be reachable through that re-export; the chain walk did not get there.
AnchoredFile(String)
The written path anchored to exactly this corpus file and the name was not found in it. Whether that is a sinter gap or a dangling reference depends on how completely the file was indexed — which the resolver does not know and its consumers do.
Trait Implementations§
Source§impl Clone for ResolverGap
impl Clone for ResolverGap
Source§fn clone(&self) -> ResolverGap
fn clone(&self) -> ResolverGap
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more