pub struct RealFileSystem {
pub root: PathBuf,
}Fields§
§root: PathBufTrait Implementations§
Source§impl Clone for RealFileSystem
impl Clone for RealFileSystem
Source§fn clone(&self) -> RealFileSystem
fn clone(&self) -> RealFileSystem
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 FileSystem for RealFileSystem
impl FileSystem for RealFileSystem
fn subsystem(&self, path: &Path) -> Box<dyn FileSystem>
fn remove(&self, path: &Path) -> IoResult<()>
fn duplicate(&self) -> Box<dyn FileSystem>
fn exists(&self, path: &Path) -> bool
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 Freeze for RealFileSystem
impl RefUnwindSafe for RealFileSystem
impl Send for RealFileSystem
impl Sync for RealFileSystem
impl Unpin for RealFileSystem
impl UnwindSafe for RealFileSystem
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