pub trait LibCatalog {
// Required method
fn resolve(&self, name: &str) -> Option<&dyn Lib>;
}Expand description
A resolver from a recipe requires name to a loadable library.
A recipe’s requires = [...] list names the libs its setup needs
(numbers/complex, codec/lisp, organ/binding, …). The runner asks the
catalog to resolve each name and loads the returned lib into the eval Cx
before decode+eval. A name the catalog does not carry stays unresolved, and
the recipe becomes a descriptor whose reason is the unresolved require.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".