pub struct ZipFS { /* private fields */ }
Expand description
A filesystem backed by a zip file.
Implementations§
Trait Implementations§
Source§impl VFS for ZipFS
impl VFS for ZipFS
Source§fn read_dir(
&self,
path: &Path,
) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
fn read_dir( &self, path: &Path, ) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
Zip files don’t have real directories, so we (incorrectly) hack it by just looking for a path prefix for now.
Source§fn open_options(
&self,
path: &Path,
open_options: OpenOptions,
) -> Result<Box<dyn VFile>>
fn open_options( &self, path: &Path, open_options: OpenOptions, ) -> Result<Box<dyn VFile>>
Open the file at this path with the given options
Source§fn to_path_buf(&self) -> Option<PathBuf>
fn to_path_buf(&self) -> Option<PathBuf>
Retrieve the actual location of the VFS root, if available.
Auto Trait Implementations§
impl !Freeze for ZipFS
impl !RefUnwindSafe for ZipFS
impl !Send for ZipFS
impl !Sync for ZipFS
impl Unpin for ZipFS
impl !UnwindSafe for ZipFS
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