pub struct MapLoader {
pub modules: HashMap<String, String>,
}Expand description
In-memory loader — useful for tests and bundled-stdlib loading. Path strings map directly to source strings; missing path → error.
Fields§
§modules: HashMap<String, String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapLoader
impl RefUnwindSafe for MapLoader
impl Send for MapLoader
impl Sync for MapLoader
impl Unpin for MapLoader
impl UnsafeUnpin for MapLoader
impl UnwindSafe for MapLoader
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