pub struct HandleFactory<'a> { /* private fields */ }
Implementations§
Source§impl<'a> HandleFactory<'a>
impl<'a> HandleFactory<'a>
pub fn make_handle_to_default_artifact<T>(&self, asset_id: AssetId) -> Handle<T>
pub fn make_handle_to_artifact<T>( &self, asset_artifact_id_pair: AssetArtifactIdPair, ) -> Handle<T>
pub fn make_handle_to_artifact_raw<T>( &self, asset_id: AssetId, artifact_id: ArtifactId, ) -> Handle<T>
pub fn make_handle_to_artifact_key<T, K: Hash>( &self, asset_id: AssetId, artifact_key: Option<K>, ) -> Handle<T>
Trait Implementations§
Source§impl<'a> Clone for HandleFactory<'a>
impl<'a> Clone for HandleFactory<'a>
Source§fn clone(&self) -> HandleFactory<'a>
fn clone(&self) -> HandleFactory<'a>
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 moreimpl<'a> Copy for HandleFactory<'a>
Auto Trait Implementations§
impl<'a> Freeze for HandleFactory<'a>
impl<'a> !RefUnwindSafe for HandleFactory<'a>
impl<'a> Send for HandleFactory<'a>
impl<'a> Sync for HandleFactory<'a>
impl<'a> Unpin for HandleFactory<'a>
impl<'a> !UnwindSafe for HandleFactory<'a>
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