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]

[src]

Return the 32 bit id of this handle.

[src]

Downgrades the handle and creates a WeakHandle.

Trait Implementations

impl<A: ?Sized> Clone for Handle<A>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: ?Sized> Debug for Handle<A>
[src]

[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]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<A: ?Sized> PartialEq for Handle<A>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<A> Component for Handle<A> where
    A: Asset
[src]

Associated storage type for this component.

Auto Trait Implementations

impl<A: ?Sized> Send for Handle<A> where
    A: Send

impl<A: ?Sized> Sync for Handle<A> where
    A: Sync