pub struct Package<T: CachePair> { /* private fields */ }Expand description
A package containing three cache pairs.
Implementations§
Source§impl<T: CachePair> Package<T>
impl<T: CachePair> Package<T>
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<I>(&self, package_type: I) -> Option<&T>where
I: TryInto<PackageType>,
pub fn borrow<I>(&self, package_type: I) -> Option<&T>where
I: TryInto<PackageType>,
Returns a reference to the package of the specified type.
Returns None if the package does not exist.
Sourcepub fn borrow_mut<I>(&mut self, package_type: I) -> Option<&mut T>where
I: TryInto<PackageType>,
pub fn borrow_mut<I>(&mut self, package_type: I) -> Option<&mut T>where
I: TryInto<PackageType>,
Returns a mutable reference to the package of the specified type.
Returns None if the package does not exist.
Sourcepub fn take<I>(&mut self, package_type: I) -> Option<T>where
I: TryInto<PackageType>,
pub fn take<I>(&mut self, package_type: I) -> Option<T>where
I: TryInto<PackageType>,
Returns the package of the specified type.
Auto Trait Implementations§
impl<T> Freeze for Package<T>where
T: Freeze,
impl<T> RefUnwindSafe for Package<T>where
T: RefUnwindSafe,
impl<T> Send for Package<T>where
T: Send,
impl<T> Sync for Package<T>where
T: Sync,
impl<T> Unpin for Package<T>where
T: Unpin,
impl<T> UnwindSafe for Package<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