pub struct ModpkgExtractor<'modpkg, TSource: Read + Seek> { /* private fields */ }Expand description
Extractor for ModPkg archives.
This struct provides functionality to extract chunks from a ModPkg archive to a specified directory, organized by layers.
Implementations§
Source§impl<'modpkg, TSource: Read + Seek> ModpkgExtractor<'modpkg, TSource>
impl<'modpkg, TSource: Read + Seek> ModpkgExtractor<'modpkg, TSource>
Sourcepub fn new(modpkg: &'modpkg mut Modpkg<TSource>) -> Self
pub fn new(modpkg: &'modpkg mut Modpkg<TSource>) -> Self
Create a new extractor for the given ModPkg.
Sourcepub fn extract_all(
&mut self,
output_dir: impl AsRef<Path>,
) -> Result<(), ModpkgError>
pub fn extract_all( &mut self, output_dir: impl AsRef<Path>, ) -> Result<(), ModpkgError>
Extract all chunks from the ModPkg to the specified output directory.
Chunks will be organized by layer, with each layer having its own subdirectory.
Auto Trait Implementations§
impl<'modpkg, TSource> Freeze for ModpkgExtractor<'modpkg, TSource>
impl<'modpkg, TSource> RefUnwindSafe for ModpkgExtractor<'modpkg, TSource>where
TSource: RefUnwindSafe,
impl<'modpkg, TSource> Send for ModpkgExtractor<'modpkg, TSource>where
TSource: Send,
impl<'modpkg, TSource> Sync for ModpkgExtractor<'modpkg, TSource>where
TSource: Sync,
impl<'modpkg, TSource> Unpin for ModpkgExtractor<'modpkg, TSource>
impl<'modpkg, TSource> UnsafeUnpin for ModpkgExtractor<'modpkg, TSource>
impl<'modpkg, TSource> !UnwindSafe for ModpkgExtractor<'modpkg, TSource>
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