pub struct MemoryFileSystem { /* private fields */ }Trait Implementations§
Source§impl Clone for MemoryFileSystem
impl Clone for MemoryFileSystem
Source§fn clone(&self) -> MemoryFileSystem
fn clone(&self) -> MemoryFileSystem
Returns a copy 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 MemoryFileSystem
impl Debug for MemoryFileSystem
Source§impl Default for MemoryFileSystem
impl Default for MemoryFileSystem
Source§fn default() -> MemoryFileSystem
fn default() -> MemoryFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystemAPI for MemoryFileSystem
impl FileSystemAPI for MemoryFileSystem
fn root_dir(&self) -> &Path
fn exists(&self, path: &Path) -> Result<bool, Box<dyn Error>>
fn is_dir(&self, path: &Path) -> Result<bool, Box<dyn Error>>
fn remove_dir_all(&mut self, path: &Path) -> Result<(), Box<dyn Error>>
fn create_dir_all(&mut self, _path: &Path) -> Result<(), Box<dyn Error>>
fn read(&self, path: &Path) -> Result<Option<Vec<u8>>, Box<dyn Error>>
fn read_to_string(&self, path: &Path) -> Result<Option<String>, Box<dyn Error>>
fn delete(&mut self, path: &Path) -> Result<(), Box<dyn Error>>
fn write( &mut self, path: &Path, contents: Vec<u8>, ) -> Result<(), Box<dyn Error>>
fn write_str( &mut self, path: &Path, contents: String, ) -> Result<(), Box<dyn Error>>
fn walk_dir( &self, path: &Path, include_dirs: bool, ) -> Result<Box<dyn Iterator<Item = PathBuf>>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for MemoryFileSystem
impl RefUnwindSafe for MemoryFileSystem
impl Send for MemoryFileSystem
impl Sync for MemoryFileSystem
impl Unpin for MemoryFileSystem
impl UnwindSafe for MemoryFileSystem
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