pub struct FakeFileSystem { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for FakeFileSystem
impl Clone for FakeFileSystem
Source§fn clone(&self) -> FakeFileSystem
fn clone(&self) -> FakeFileSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FakeFileSystem
impl Debug for FakeFileSystem
Source§impl FileSystem for FakeFileSystem
impl FileSystem for FakeFileSystem
fn subsystem(&self, path: &Path) -> Box<dyn FileSystem>
fn duplicate(&self) -> Box<dyn FileSystem>
fn exists(&self, path: &Path) -> bool
fn remove(&self, path: &Path) -> IoResult<()>
fn read( &self, path: &Path, f: &mut dyn FnMut(&mut dyn ReadSeek) -> IoResult<()>, ) -> IoResult<()>
fn write( &self, path: &Path, f: &mut dyn FnMut(&mut dyn Write) -> IoResult<()>, ) -> IoResult<()>
fn full_path_for(&self, path: &Path) -> PathBuf
fn files(&self) -> Vec<PathBuf>
fn is_empty(&self) -> bool
fn copy(&self, from: &Path, to: &Path) -> IoResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for FakeFileSystem
impl !Send for FakeFileSystem
impl !Sync for FakeFileSystem
impl !UnwindSafe for FakeFileSystem
impl Freeze for FakeFileSystem
impl Unpin for FakeFileSystem
impl UnsafeUnpin for FakeFileSystem
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