pub struct BuiltinContextResolver;Expand description
The context kinds this checkout can read itself: wren_project and raw_source. A host that
needs another kind wraps this — delegating the two it knows and handling its own.
Trait Implementations§
Source§impl ContextResolver for BuiltinContextResolver
impl ContextResolver for BuiltinContextResolver
Source§fn resolve(
&self,
binding: &BindingFile,
project_dir: &Path,
) -> Result<Box<dyn ContextLoader>, String>
fn resolve( &self, binding: &BindingFile, project_dir: &Path, ) -> Result<Box<dyn ContextLoader>, String>
Build the loader for
binding. project_dir is the Warble project directory, so a resolver
reading from disk can resolve a relative binding.project against it.Auto Trait Implementations§
impl Freeze for BuiltinContextResolver
impl RefUnwindSafe for BuiltinContextResolver
impl Send for BuiltinContextResolver
impl Sync for BuiltinContextResolver
impl Unpin for BuiltinContextResolver
impl UnsafeUnpin for BuiltinContextResolver
impl UnwindSafe for BuiltinContextResolver
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