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

Clears all data related to the given entities from the resource.

Converts this resource into a ResourceBuilder for constructing itself.

Methods

impl Resource
[src]

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.

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