pub enum Resolution {
Local,
UniqueGlobal,
Ambiguous,
ReceiverUnknown,
Unresolved,
}Expand description
How a reference was resolved to a definition.
Variants§
Local
A definition of the name exists in the reference’s own file.
UniqueGlobal
The name is defined exactly once across the view.
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
Returns a duplicate of the value. Read more
1.0.0 · 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 Resolution
impl Debug for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl Copy for Resolution
impl Eq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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