Struct amethyst_assets::Handle [−][src]
pub struct Handle<A: ?Sized> { /* fields omitted */ }
A handle to an asset. This is usually what the
user deals with, the actual asset (A) is stored
in an AssetStorage.
Methods
impl<A> Handle<A>[src]
impl<A> Handle<A>pub fn id(&self) -> u32[src]
pub fn id(&self) -> u32Return the 32 bit id of this handle.
pub fn downgrade(&self) -> WeakHandle<A>[src]
pub fn downgrade(&self) -> WeakHandle<A>Downgrades the handle and creates a WeakHandle.
Trait Implementations
impl<A: ?Sized> Clone for Handle<A>[src]
impl<A: ?Sized> Clone for Handle<A>fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<A: ?Sized> Debug for Handle<A>[src]
impl<A: ?Sized> Debug for Handle<A>fn fmt(&self, __f: &mut Formatter) -> Result[src]
fn fmt(&self, __f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<A: ?Sized> Eq for Handle<A>[src]
impl<A: ?Sized> Eq for Handle<A>impl<A: ?Sized> Hash for Handle<A>[src]
impl<A: ?Sized> Hash for Handle<A>fn hash<__HA>(&self, __state: &mut __HA) where
__HA: Hasher, [src]
fn hash<__HA>(&self, __state: &mut __HA) where
__HA: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl<A: ?Sized> PartialEq for Handle<A>[src]
impl<A: ?Sized> PartialEq for Handle<A>fn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<A> Component for Handle<A> where
A: Asset, [src]
impl<A> Component for Handle<A> where
A: Asset, type Storage = A::HandleStorage
Associated storage type for this component.