Struct distill_loader::storage::LoadHandle[][src]

pub struct LoadHandle(pub u64);

Loading ID allocated by Loader to track loading of a particular asset or an indirect reference to an asset.

Implementations

impl LoadHandle[src]

pub fn is_indirect(&self) -> bool[src]

Returns true if the handle needs to be resolved through the IndirectionTable before use. An “indirect” LoadHandle represents a load operation for an identifier that is late-bound, meaning the identifier may change which AssetUuid it resolves to. An example of an indirect LoadHandle would be one that loads by filesystem path. The specific asset at a path may change as files change, move or are deleted, while a direct LoadHandle (one that addresses by AssetUuid) is guaranteed to refer to an AssetUuid for its whole lifetime.

Trait Implementations

impl Clone for LoadHandle[src]

impl Copy for LoadHandle[src]

impl Debug for LoadHandle[src]

impl Eq for LoadHandle[src]

impl Hash for LoadHandle[src]

impl PartialEq<LoadHandle> for LoadHandle[src]

impl StructuralEq for LoadHandle[src]

impl StructuralPartialEq for LoadHandle[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.