pub struct MemFileSystem { /* private fields */ }Expand description
An in-memory filesystem (the fixture runner’s): files keyed by
repo-relative path; the walk treats the /-separated paths as a directory
tree and visits each directory’s entries in bytewise name order,
depth-first, exactly as RealFileSystem does (§4.2). The root argument
is ignored.
Implementations§
Trait Implementations§
Source§impl Clone for MemFileSystem
impl Clone for MemFileSystem
Source§impl Debug for MemFileSystem
impl Debug for MemFileSystem
Source§impl Default for MemFileSystem
impl Default for MemFileSystem
impl Eq for MemFileSystem
Source§impl FileSystem for MemFileSystem
impl FileSystem for MemFileSystem
Source§fn walk_markdown(&self, _root: &Path) -> Result<Vec<String>>
fn walk_markdown(&self, _root: &Path) -> Result<Vec<String>>
§4.2: every regular file named
*.md at any depth under root,
skipping IGNORED_DIRS, depth-first with each directory’s entries
in bytewise name order.Source§fn stat(&self, _root: &Path, path: &str) -> Result<Option<FileStat>>
fn stat(&self, _root: &Path, path: &str) -> Result<Option<FileStat>>
(mtime_ns, size) of path under root; None when absent.Source§impl PartialEq for MemFileSystem
impl PartialEq for MemFileSystem
impl StructuralPartialEq for MemFileSystem
Auto Trait Implementations§
impl Freeze for MemFileSystem
impl RefUnwindSafe for MemFileSystem
impl Send for MemFileSystem
impl Sync for MemFileSystem
impl Unpin for MemFileSystem
impl UnsafeUnpin for MemFileSystem
impl UnwindSafe for MemFileSystem
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.