pub struct Decompress;Implementations§
Source§impl Decompress
impl Decompress
Sourcepub fn local_str(filepath: &str)
pub fn local_str(filepath: &str)
unzip file from a file path in the format of &str
§Example
use simple_zip::zip::Decompress;
let path = "./a.zip";
Decompress::local_str(&path);Sourcepub fn local_buffer(filepath: &Path)
pub fn local_buffer(filepath: &Path)
unzip file from a PathBuffer
§Example
use std::path::Path;
use simple_zip::zip::Decompress;
let path = "./a.zip";
let pathbuf = Path::new(&path);
Decompress::local_buffer(&pathbuf);Auto Trait Implementations§
impl Freeze for Decompress
impl RefUnwindSafe for Decompress
impl Send for Decompress
impl Sync for Decompress
impl Unpin for Decompress
impl UnwindSafe for Decompress
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