pub struct InMemoryFileSystem { /* private fields */ }Expand description
In-memory filesystem for testing without touching real files.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryFileSystem
impl Clone for InMemoryFileSystem
Source§fn clone(&self) -> InMemoryFileSystem
fn clone(&self) -> InMemoryFileSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryFileSystem
impl Debug for InMemoryFileSystem
Source§impl Default for InMemoryFileSystem
impl Default for InMemoryFileSystem
Source§fn default() -> InMemoryFileSystem
fn default() -> InMemoryFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for InMemoryFileSystem
impl FileSystem for InMemoryFileSystem
Source§fn read_to_string(&self, path: &Path) -> Result<String>
fn read_to_string(&self, path: &Path) -> Result<String>
Reads the contents of a file as a UTF-8 string.
Source§fn write(&self, path: &Path, contents: &str) -> Result<()>
fn write(&self, path: &Path, contents: &str) -> Result<()>
Writes string contents to a file, creating parent directories as needed.
Auto Trait Implementations§
impl Freeze for InMemoryFileSystem
impl RefUnwindSafe for InMemoryFileSystem
impl Send for InMemoryFileSystem
impl Sync for InMemoryFileSystem
impl Unpin for InMemoryFileSystem
impl UnwindSafe for InMemoryFileSystem
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