pub struct MemoryFileLoader { /* private fields */ }Expand description
Serves files from memory, for tests and for embedding scripts that aren’t on disk.
Implementations§
Source§impl MemoryFileLoader
impl MemoryFileLoader
pub fn new<'a>(files: impl IntoIterator<Item = (&'a str, &'a str)>) -> Self
Trait Implementations§
Source§impl Debug for MemoryFileLoader
impl Debug for MemoryFileLoader
Source§impl Default for MemoryFileLoader
impl Default for MemoryFileLoader
Source§impl FileLoader for MemoryFileLoader
impl FileLoader for MemoryFileLoader
Auto Trait Implementations§
impl Forget for MemoryFileLoader
impl Freeze for MemoryFileLoader
impl Move for MemoryFileLoader
impl RefUnwindSafe for MemoryFileLoader
impl Send for MemoryFileLoader
impl Sync for MemoryFileLoader
impl Unpin for MemoryFileLoader
impl UnsafeUnpin for MemoryFileLoader
impl UnwindSafe for MemoryFileLoader
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