pub struct DecompressionManager { /* private fields */ }
Implementations§
Source§impl DecompressionManager
impl DecompressionManager
pub fn new() -> Self
pub fn set_cache_location(&mut self, cache_location: &str)
pub fn cache(&mut self, filename: &str)
pub fn get(&self, filename: &str) -> Option<&CachedFile>
pub fn get_mut(&mut self, filename: &str) -> Option<&mut CachedFile>
Sourcepub fn get_data(&mut self, filename: &str) -> Option<Vec<u8>>
pub fn get_data(&mut self, filename: &str) -> Option<Vec<u8>>
Return a copy of the data and auto manage the cache
Sourcepub fn get_data_ref(&mut self, filename: &str) -> Option<&Option<Vec<u8>>>
pub fn get_data_ref(&mut self, filename: &str) -> Option<&Option<Vec<u8>>>
Return a ref of the data and auto manage the cache
Sourcepub fn get_data_mut(&mut self, filename: &str) -> Option<&mut Option<Vec<u8>>>
pub fn get_data_mut(&mut self, filename: &str) -> Option<&mut Option<Vec<u8>>>
Return a &mut of the data and auto manage the cache
pub fn unload(&mut self, filename: &str)
pub fn remove(&mut self, filename: &str)
pub fn load_archive( &mut self, archive: &str, selection: Option<Vec<&str>>, process_pass_list: &mut Vec<Box<dyn Extension>>, )
Trait Implementations§
Source§impl Debug for DecompressionManager
impl Debug for DecompressionManager
Source§impl Default for DecompressionManager
impl Default for DecompressionManager
Source§fn default() -> DecompressionManager
fn default() -> DecompressionManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecompressionManager
impl RefUnwindSafe for DecompressionManager
impl Send for DecompressionManager
impl Sync for DecompressionManager
impl Unpin for DecompressionManager
impl UnwindSafe for DecompressionManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more