pub struct ModuleLoader {
pub entry: String,
pub output: String,
pub base_dir: String,
}Fields§
§entry: String§output: String§base_dir: StringImplementations§
Source§impl ModuleLoader
impl ModuleLoader
pub fn new(entry: &str, output: &str) -> Self
pub fn from_raw_source( entry_path: &str, output_path: &str, content: &str, global_store: &mut GlobalStore, ) -> Self
pub fn extract_statements_map( &self, global_store: &GlobalStore, ) -> HashMap<String, Vec<Statement>>
pub fn load_single_module( &self, global_store: &mut GlobalStore, ) -> Result<Module, String>
pub fn load_wasm_module( &self, global_store: &mut GlobalStore, ) -> Result<(), String>
pub fn load_all_modules( &self, global_store: &mut GlobalStore, ) -> (HashMap<String, Vec<Token>>, HashMap<String, Vec<Statement>>)
Auto Trait Implementations§
impl Freeze for ModuleLoader
impl RefUnwindSafe for ModuleLoader
impl Send for ModuleLoader
impl Sync for ModuleLoader
impl Unpin for ModuleLoader
impl UnwindSafe for ModuleLoader
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more