pub enum BuiltinLookup {
Found(String),
UnknownMember {
path: String,
member: String,
members: Vec<String>,
},
Unknown,
}Expand description
Why resolving a built-in name succeeded or failed. The distinction matters to callers: an unresolvable member can name the members that do exist, which turns a dead end into a one-edit repair.
Variants§
Found(String)
Rendered .d.subm declarations for the resolved name.
UnknownMember
path resolved, but it has no member called member.
Unknown
The leading segment names no built-in at all.
Trait Implementations§
Source§impl Clone for BuiltinLookup
impl Clone for BuiltinLookup
Source§impl Debug for BuiltinLookup
impl Debug for BuiltinLookup
impl Eq for BuiltinLookup
Source§impl PartialEq for BuiltinLookup
impl PartialEq for BuiltinLookup
impl StructuralPartialEq for BuiltinLookup
Auto Trait Implementations§
impl Freeze for BuiltinLookup
impl RefUnwindSafe for BuiltinLookup
impl Send for BuiltinLookup
impl Sync for BuiltinLookup
impl Unpin for BuiltinLookup
impl UnsafeUnpin for BuiltinLookup
impl UnwindSafe for BuiltinLookup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.