pub fn add_zip_file<R: io::Read + io::Seek + Send + Sync + 'static>(
        &mut self,
        reader: R,
        path: Option<PathBuf>,
    ) -> Result<()> {
        let zipfs = vfs::ZipFs::from_read(reader, path)?;
        log::trace!("Adding zip file from reader");
        self.vfs.push_back(Box::new(zipfs));
        Ok(())
    }
/// Adds any object that implements Read + Seek as a zip file.
///
/// Note: This is not intended for system files for the same reasons as
/// for `.mount()`. Rather, it can be used to read zip files from sources
/// such as `std::io::Cursor::new(includes_bytes!(...))` in order to embed
/// resources into the game's executable.
Adds any object that implements Read + Seek as a zip file.
Note: This is not intended for system files for the same reasons as
for `.mount()`.
Adds any object that implements Read + Seek as a zip file . Note : This is not intended for system files for the same reasons as for ` . mount () ` .
pub fn add_zip_file<R: io::Read + io::Seek + Send + Sync + 'static>(
        &mut self,
        reader: R,
        path: Option<PathBuf>,
    ) -> Result<()> {
        let zipfs = vfs::ZipFs::from_read(reader, path)?;
        log::trace!("Adding zip file from reader");
        self.vfs.push_back(Box::new(zipfs));
        Ok(())
    }
pub fn add_zip_file < R : io :: Read + io :: Seek + Send + Sync + ' static > ( & mut self , reader : R , path : Option < PathBuf > , ) -> Result < ( ) > { let zipfs = vfs :: ZipFs :: from_read ( reader , path ) ? ; log :: trace ! ( " " ) ; self . vfs . push_back ( Box :: new ( zipfs ) ) ; Ok ( ( ) ) }
Adds any object that implements Read + Seek as a zip file.
Adds any object that implements Read + Seek as a zip file .
&mut self
reader
R
path
Option<PathBuf>
&mut self
reader
R
path
Option<PathBuf>