pub struct UntypedResources { /* private fields */ }
Expand description

Storage for un-typed resources.

This is the backing data store used by Resources.

Unless you are intending to do modding or otherwise need raw pointers to your resource data, you should use Resources instead.

Implementations§

Create an empty UntypedResources.

Insert a new resource

Get a cell containing the resource data pointer for the given ID

Remove a resource

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Drop the value at ptr. Read more
Clone the value at src, writing the new value to dst. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.