pub struct LoadHandle(pub u64);Expand description
Loading ID allocated by Loader to track loading of a particular asset
or an indirect reference to an asset.
Tuple Fields§
§0: u64Implementations§
Source§impl LoadHandle
impl LoadHandle
Sourcepub fn is_indirect(&self) -> bool
pub fn is_indirect(&self) -> bool
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§
Source§impl Clone for LoadHandle
impl Clone for LoadHandle
Source§fn clone(&self) -> LoadHandle
fn clone(&self) -> LoadHandle
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 moreSource§impl Debug for LoadHandle
impl Debug for LoadHandle
Source§impl Hash for LoadHandle
impl Hash for LoadHandle
Source§impl PartialEq for LoadHandle
impl PartialEq for LoadHandle
impl Copy for LoadHandle
impl Eq for LoadHandle
impl StructuralPartialEq for LoadHandle
Auto Trait Implementations§
impl Freeze for LoadHandle
impl RefUnwindSafe for LoadHandle
impl Send for LoadHandle
impl Sync for LoadHandle
impl Unpin for LoadHandle
impl UnwindSafe for LoadHandle
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