pub struct CapturingFilesystem { /* private fields */ }
Expand description
Capture all filesystem operations in-memory.
Used (among other things) for rendering output in WASM.
Implementations§
Source§impl CapturingFilesystem
impl CapturingFilesystem
pub fn new() -> CapturingFilesystem
Sourcepub fn filesystem(&self) -> Box<dyn Filesystem>
pub fn filesystem(&self) -> Box<dyn Filesystem>
Create a new filesystem handle that can be passed into Context
.
Sourcepub fn files(&self) -> &Rc<RefCell<LinkedHashMap<RelativePathBuf, Vec<u8>>>>
pub fn files(&self) -> &Rc<RefCell<LinkedHashMap<RelativePathBuf, Vec<u8>>>>
Access the underlying captured files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CapturingFilesystem
impl !RefUnwindSafe for CapturingFilesystem
impl !Send for CapturingFilesystem
impl !Sync for CapturingFilesystem
impl Unpin for CapturingFilesystem
impl !UnwindSafe for CapturingFilesystem
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