pub struct TestFilesystem { /* private fields */ }
Expand description
In-memory filesystem for testing purposes.
Implementations§
Trait Implementations§
Source§impl Debug for TestFilesystem
impl Debug for TestFilesystem
Source§impl Filesystem for TestFilesystem
impl Filesystem for TestFilesystem
Source§fn read_dir_diff_paths(
&self,
left: &Path,
right: &Path,
) -> Result<BTreeSet<PathBuf>>
fn read_dir_diff_paths( &self, left: &Path, right: &Path, ) -> Result<BTreeSet<PathBuf>>
Find the set of files that appear in either
left
or right
.Source§fn read_file_info(&self, path: &Path) -> Result<FileInfo>
fn read_file_info(&self, path: &Path) -> Result<FileInfo>
Read the
FileInfo
for the provided path
.Source§fn write_file(&mut self, path: &Path, contents: &str) -> Result<()>
fn write_file(&mut self, path: &Path, contents: &str) -> Result<()>
Write new file contents to
path
.Auto Trait Implementations§
impl Freeze for TestFilesystem
impl RefUnwindSafe for TestFilesystem
impl Send for TestFilesystem
impl Sync for TestFilesystem
impl Unpin for TestFilesystem
impl UnwindSafe for TestFilesystem
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more