pub struct ModuleLoader { /* private fields */ }Implementations§
Source§impl ModuleLoader
impl ModuleLoader
pub fn new(base_dir: impl Into<PathBuf>) -> Self
pub fn set_source_overrides(&mut self, overrides: HashMap<PathBuf, String>)
pub fn set_source_override<P: Into<PathBuf>, S: Into<String>>( &mut self, path: P, source: S, )
pub fn clear_source_overrides(&mut self)
pub fn load_program_from_entry(&mut self, entry_file: &str) -> Result<Program>
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