Struct starlark::eval::ReturnFileLoader
source · pub struct ReturnFileLoader<'a> {
pub modules: &'a HashMap<&'a str, &'a FrozenModule>,
}
Expand description
FileLoader
that looks up modules by name from a HashMap
.
A list of all load statements can be obtained through
AstModule::loads
.
This struct will raise an error if any requested files are not available.
Fields§
§modules: &'a HashMap<&'a str, &'a FrozenModule>
Map from module name (first argument to load
statement) to the actual module.
Trait Implementations§
source§impl<'a> FileLoader for ReturnFileLoader<'a>
impl<'a> FileLoader for ReturnFileLoader<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReturnFileLoader<'a>
impl<'a> Send for ReturnFileLoader<'a>
impl<'a> Sync for ReturnFileLoader<'a>
impl<'a> Unpin for ReturnFileLoader<'a>
impl<'a> !UnwindSafe for ReturnFileLoader<'a>
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