Struct wlambda::compiler::LocalFileModuleResolver [−][src]
pub struct LocalFileModuleResolver {}Expand description
This structure implements the ModuleResolver trait and is
responsible for loading modules on !@import for WLambda.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
fn resolve(
&self,
global: GlobalEnvRef,
path: &[String],
import_file_path: Option<&str>
) -> Result<SymbolTable, ModuleLoadError<'_>>
fn resolve(
&self,
global: GlobalEnvRef,
path: &[String],
import_file_path: Option<&str>
) -> Result<SymbolTable, ModuleLoadError<'_>>
Resolves the path to a HashMap of names -> VVal. Where you obtain this mapping from is completely up to you. You can statically define these, load them from a JSON file, load them by executing another WLambda script or whatever you fancy. Read more
Auto Trait Implementations
impl RefUnwindSafe for LocalFileModuleResolver
impl Send for LocalFileModuleResolver
impl Sync for LocalFileModuleResolver
impl Unpin for LocalFileModuleResolver
impl UnwindSafe for LocalFileModuleResolver
Blanket Implementations
Mutably borrows from an owned value. Read more