pub struct TestFs {
pub files: Arc<Mutex<HashMap<Utf8PathBuf, Vec<u8>, IndigoBuildHasher>>>,
}Expand description
In-memory filesystem implementation for testing. Currently only supports canonicalized paths (i.e. absolute, normalized, and no symlinks).
Fields§
§files: Arc<Mutex<HashMap<Utf8PathBuf, Vec<u8>, IndigoBuildHasher>>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestFs
impl RefUnwindSafe for TestFs
impl Send for TestFs
impl Sync for TestFs
impl Unpin for TestFs
impl UnsafeUnpin for TestFs
impl UnwindSafe for TestFs
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