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]
pub fn id(&self) -> u32
[src]
Return the 32 bit id of this handle.
pub fn downgrade(&self) -> WeakHandle<A>
[src]
Downgrades the handle and creates a WeakHandle
.
Trait Implementations
impl<A: ?Sized> Clone for Handle<A>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
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]
fn fmt(&self, __f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<A: ?Sized> Eq for Handle<A>
[src]
impl<A: ?Sized> Hash for Handle<A>
[src]
fn hash<__HA>(&self, __state: &mut __HA) where
__HA: Hasher,
[src]
__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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<A: ?Sized> PartialEq for Handle<A>
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<A> Component for Handle<A> where
A: Asset,
[src]
A: Asset,
type Storage = A::HandleStorage
Associated storage type for this component.