Struct distill_loader::handle::WeakHandle[][src]

pub struct WeakHandle { /* fields omitted */ }

Handle to an asset that does not prevent the asset from being unloaded.

Weak handles are primarily used when you want to use something that is already loaded.

For example, a strong handle to an asset may be guaranteed to exist elsewhere in the program, and so you can simply get and use a weak handle to that asset in other parts of your code. This removes reference counting overhead, but also ensures that the system which uses the weak handle is not in control of when to unload the asset.

Implementations

impl WeakHandle[src]

pub fn new(handle: LoadHandle) -> Self[src]

Trait Implementations

impl AssetHandle for WeakHandle[src]

impl Clone for WeakHandle[src]

impl Debug for WeakHandle[src]

impl Eq for WeakHandle[src]

impl Hash for WeakHandle[src]

impl PartialEq<WeakHandle> for WeakHandle[src]

impl StructuralEq for WeakHandle[src]

impl StructuralPartialEq for WeakHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.