Expand description
The extract manager to retrieve files from archives.
Implementations
sourceimpl<'a, R: Read + Seek> Extract<'a, R>
impl<'a, R: Read + Seek> Extract<'a, R>
sourcepub fn from_cursor(reader: R, archive_format: ArchiveFormat) -> Extract<'a, R>
pub fn from_cursor(reader: R, archive_format: ArchiveFormat) -> Extract<'a, R>
Create archive from reader.
sourcepub fn with_files<E: Into<Error>, F: FnMut(Entry<'_, &mut ArchiveReader<R>>) -> Result<bool, E>>(
&'a mut self,
f: F
) -> Result<()>
pub fn with_files<E: Into<Error>, F: FnMut(Entry<'_, &mut ArchiveReader<R>>) -> Result<bool, E>>(
&'a mut self,
f: F
) -> Result<()>
Reads the archive content.
sourcepub fn extract_into(&mut self, into_dir: &Path) -> Result<()>
pub fn extract_into(&mut self, into_dir: &Path) -> Result<()>
Extract an entire source archive into a specified path. If the source is a single compressed
file and not an archive, it will be extracted into a file with the same name inside of
into_dir
.
Trait Implementations
Auto Trait Implementations
impl<'a, R> !RefUnwindSafe for Extract<'a, R>
impl<'a, R> Send for Extract<'a, R> where
R: Send,
impl<'a, R> !Sync for Extract<'a, R>
impl<'a, R> Unpin for Extract<'a, R> where
R: Unpin,
impl<'a, R> !UnwindSafe for Extract<'a, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more