pub enum Resolution {
Found(String),
Unresolved(String),
Ambiguous {
written: String,
candidates: Vec<String>,
},
}Expand description
What a written name denotes, once the scope has had its say.
Variants§
Found(String)
Exactly one declared constant answers to the name: this absolute key.
Unresolved(String)
Nothing declared answers to it. The caller keeps the spelling the user WROTE, so an unknown global is still reported as the unknown global the user asked for and not as some mangled candidate they never typed.
Ambiguous
Two or more DIFFERENT constants answer to one short name at the same priority. Lean errors here and so do we — a resolver that picks silently changes what a proof is ABOUT, and that is the failure mode with no symptom.
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 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