pub struct XetoResolver { /* private fields */ }Expand description
Resolves unqualified Xeto spec names to fully qualified lib::Name forms.
Resolution order:
- Already qualified (contains
::): return as-is - Current library’s own specs
- Declared dependencies
"sys"builtins- All known libraries (fallback)
Implementations§
Source§impl XetoResolver
impl XetoResolver
Sourcepub fn add_lib(
&mut self,
lib_name: &str,
spec_names: HashSet<String>,
depends: Vec<String>,
)
pub fn add_lib( &mut self, lib_name: &str, spec_names: HashSet<String>, depends: Vec<String>, )
Register a library with its spec names and dependency list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XetoResolver
impl RefUnwindSafe for XetoResolver
impl Send for XetoResolver
impl Sync for XetoResolver
impl Unpin for XetoResolver
impl UnsafeUnpin for XetoResolver
impl UnwindSafe for XetoResolver
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