pub enum Resolution {
Module(ModuleDoc),
Builtin {
name: String,
declarations: String,
},
UnknownMember {
path: String,
member: String,
members: Vec<String>,
},
Unknown,
}Expand description
How a discovery surface should answer one name, once the stdlib and built-in catalogs have both been consulted.
The server layers @mcp/* and registry packages on top; those live in
crates that depend on this one, so they cannot be resolved from here.
Variants§
Module(ModuleDoc)
An importable stdlib module.
Builtin
A language built-in, always in scope without an import.
UnknownMember
The head resolved but the member did not.
Unknown
Neither catalog knows the name.
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