pub struct VirtFs { /* private fields */ }Available on crate feature
virt only.Implementations§
Source§impl VirtFs
impl VirtFs
Sourcepub fn build<'a>(
dirs: impl Iterator<Item = &'a str> + 'a,
files: impl Iterator<Item = (&'a str, &'a [u8])> + 'a,
) -> Self
pub fn build<'a>( dirs: impl Iterator<Item = &'a str> + 'a, files: impl Iterator<Item = (&'a str, &'a [u8])> + 'a, ) -> Self
Build a filesystem from directory and file list.
Builds a filesystem instance from given data. This is generally more efficient than manually creating all entries (without caching), because the build step is able to directly access all inodes.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VirtFs
impl !RefUnwindSafe for VirtFs
impl Send for VirtFs
impl Sync for VirtFs
impl Unpin for VirtFs
impl !UnwindSafe for VirtFs
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