pub enum Resolution {
Qualified,
Local,
UniqueGlobal,
Imported,
Ambiguous,
ReceiverUnknown,
Unresolved,
}Expand description
How a reference was resolved to a definition.
Variants§
Qualified
The call site named a qualifier (Beta::get()) and exactly one
definition in the view is owned by it.
Outranks Local: a call that says which type it
means says so whatever else sits in the same file (#248).
Local
A definition of the name exists in the reference’s own file.
UniqueGlobal
The name is defined exactly once across the view.
Imported
Several definitions, none local, and the referencing file imports the name from a module that exactly one of them lives under (#252).
Ambiguous
Several definitions and none in the reference’s file — not resolved.
ReceiverUnknown
A method call (x.foo()) whose receiver type is unknown, so no
definition in the view can be claimed even if exactly one exists.
Distinct from Unresolved: definitions of the
name may well be present, but attributing the call to one of them would
assert a receiver type the graph does not know (#223).
Unresolved
No definition of the name in the view — a dangling reference.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more