vfs: Expand documentation

This commit is contained in:
Lucien Greathouse 2020-02-21 23:34:56 -08:00
parent 1b24cd36e0
commit fefc7a69cd
2 changed files with 135 additions and 19 deletions

View file

@ -4,9 +4,9 @@ use std::path::{Path, PathBuf};
use crate::{Metadata, ReadDir, VfsBackend, VfsEvent, VfsSnapshot};
/// `VfsBackend` that reads from an in-memory filesystem.
/// `VfsBackend` that reads from an in-memory filesystem, intended for setting
/// up testing scenarios quickly.
#[derive(Debug)]
#[non_exhaustive]
pub struct MemoryBackend {
entries: HashMap<PathBuf, Entry>,
orphans: BTreeSet<PathBuf>,