pub struct Loader { /* private fields */ }Implementations§
Source§impl Loader
impl Loader
pub fn new() -> Self
pub fn add_source(&mut self, source: Rc<Source>)
pub fn add_source_root<P: Into<PathBuf>>(&mut self, path: P)
pub fn find_source( &mut self, module_name: &RcStr, ) -> Result<Option<&Rc<Source>>, BasicError>
pub fn list_child_modules( &mut self, module_name: &RcStr, ) -> Result<Vec<RcStr>, BasicError>
pub fn load(&mut self, module_name: &RcStr) -> Result<Vec<File>, BasicError>
Auto Trait Implementations§
impl Freeze for Loader
impl !RefUnwindSafe for Loader
impl !Send for Loader
impl !Sync for Loader
impl Unpin for Loader
impl UnsafeUnpin for Loader
impl !UnwindSafe for Loader
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