pub struct WeakHandle<T: Asset> { /* private fields */ }Expand description
A weak handle that does not prevent the asset from being evicted.
Upgrade to an AssetHandle before accessing the data. If the upgrade
returns None the asset has been evicted and must be re-loaded.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Asset> Clone for WeakHandle<T>
impl<T: Clone + Asset> Clone for WeakHandle<T>
Source§fn clone(&self) -> WeakHandle<T>
fn clone(&self) -> WeakHandle<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for WeakHandle<T>
impl<T> RefUnwindSafe for WeakHandle<T>
impl<T> Send for WeakHandle<T>
impl<T> Sync for WeakHandle<T>
impl<T> Unpin for WeakHandle<T>
impl<T> UnsafeUnpin for WeakHandle<T>
impl<T> UnwindSafe for WeakHandle<T>
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