[−][src]Enum memofs::VfsSnapshot
A slice of a tree of files. Can be loaded into an
InMemoryFs
.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fields of Dir
children: BTreeMap<String, VfsSnapshot>
Implementations
impl VfsSnapshot
[src]
pub fn file<C: Into<Vec<u8>>>(contents: C) -> Self
[src]
pub fn dir<K: Into<String>, I: IntoIterator<Item = (K, VfsSnapshot)>>(
children: I
) -> Self
[src]
children: I
) -> Self
pub fn empty_file() -> Self
[src]
pub fn empty_dir() -> Self
[src]
Trait Implementations
impl Debug for VfsSnapshot
[src]
impl<'de> Deserialize<'de> for VfsSnapshot
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for VfsSnapshot
[src]
Auto Trait Implementations
impl RefUnwindSafe for VfsSnapshot
impl Send for VfsSnapshot
impl Sync for VfsSnapshot
impl Unpin for VfsSnapshot
impl UnwindSafe for VfsSnapshot
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,