Module resource

Source

Re-exports§

pub use cell::Cell;
pub use resources::Ref;
pub use resources::RefMut;
pub use resources::Resources;

Modules§

cell
entry
resources

Structs§

ResourceId
The id of a Resource, which simply wraps a type id and a “dynamic ID”. The “dynamic ID” is usually just left 0, and, unless such documentation says otherwise, other libraries will assume that it is always 0; non-zero IDs are only used for special resource types that are specifically defined in a more dynamic way, such that resource types can essentially be created at run time, without having different static types.

Traits§

Resource
A resource is a data slot which lives in the World can only be accessed according to Rust’s typical borrowing model (one writer xor multiple readers).