pub struct PackageCollection<T: CachePair> { /* private fields */ }Expand description
A collection of packages.
Implementations§
Source§impl<T: CachePair> PackageCollection<T>
impl<T: CachePair> PackageCollection<T>
Sourcepub fn new<P>(directory: P, is_post_ensmallening: bool) -> Result<Self, Error>
pub fn new<P>(directory: P, is_post_ensmallening: bool) -> Result<Self, Error>
Creates a new package collection from the specified directory.
§Errors
Returns an error if the directory does not exist or if the directory cannot be read.
Sourcepub fn is_post_ensmallening(&self) -> bool
pub fn is_post_ensmallening(&self) -> bool
Returns whether the package is post-ensmallening.
This is used to determine how to decompress the data from before “The Great Ensmallening” update of Warframe.
Sourcepub fn borrow(&self, package_name: &str) -> Option<&Package<T>>
pub fn borrow(&self, package_name: &str) -> Option<&Package<T>>
Returns a reference to the package with the specified name if found.
Sourcepub fn borrow_mut(&mut self, package_name: &str) -> Option<&mut Package<T>>
pub fn borrow_mut(&mut self, package_name: &str) -> Option<&mut Package<T>>
Returns a mutable reference to the package with the specified name if found.
Auto Trait Implementations§
impl<T> Freeze for PackageCollection<T>
impl<T> RefUnwindSafe for PackageCollection<T>where
T: RefUnwindSafe,
impl<T> Send for PackageCollection<T>where
T: Send,
impl<T> Sync for PackageCollection<T>where
T: Sync,
impl<T> Unpin for PackageCollection<T>where
T: Unpin,
impl<T> UnwindSafe for PackageCollection<T>where
T: UnwindSafe,
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