Trait constellation::Resource
[−]
[src]
pub trait Resource: Any + Send + Sync { fn clear_entity_data(&mut self, &[Entity]) { ... } fn to_builder(self) -> ResourceBuilder<Self> where Self: Sized { ... } }
A resource whos system access is controlled by the World
.
Provided Methods
fn clear_entity_data(&mut self, &[Entity])
Clears all data related to the given entities from the resource.
fn to_builder(self) -> ResourceBuilder<Self> where Self: Sized
Converts this resource into a ResourceBuilder
for constructing itself.
Methods
impl Resource
[src]
unsafe fn downcast_ref_unsafe<T>(&self) -> &T
Returns a reference to the boxed value, blindly assuming it to be of type T
.
If you are not absolutely certain of T
, you must not call this.
unsafe fn downcast_mut_unsafe<T>(&mut self) -> &mut T
Returns a reference to the boxed value, blindly assuming it to be of type T
.
If you are not absolutely certain of T
, you must not call this.
Implementors
impl<T: Any + Send + Sync> Resource for MapResource<T>
impl<T: Any + Send + Sync> Resource for VecResource<T>