[−][src]Struct amethyst_assets::Handle
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> Eq for Handle<A>
[src]
impl<A: ?Sized> Clone for Handle<A>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A: ?Sized> PartialEq<Handle<A>> for Handle<A>
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<A: ?Sized> Hash for Handle<A>
[src]
fn hash<__HA>(&self, __state: &mut __HA) where
__HA: Hasher,
[src]
__HA: Hasher,
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> Debug for Handle<A>
[src]
impl<A> Component for Handle<A> where
A: Asset,
[src]
A: Asset,
type Storage = A::HandleStorage
Associated storage type for this component.
Auto Trait Implementations
impl<A: ?Sized> Unpin for Handle<A> where
A: Unpin,
A: Unpin,
impl<A: ?Sized> Sync for Handle<A> where
A: Sync,
A: Sync,
impl<A: ?Sized> Send for Handle<A> where
A: Send,
A: Send,
impl<A: ?Sized> UnwindSafe for Handle<A> where
A: UnwindSafe,
A: UnwindSafe,
impl<A: ?Sized> RefUnwindSafe for Handle<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> Erased for T
[src]
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,