[][src]Crate rangoon

Structs

Archetype

A collection of entities having the same component types

ArchetypesGeneration

Determines freshness of information derived from World::archetypes

BatchedIter

Batched version of QueryIter

BuiltEntity

The output of an EntityBuilder, suitable for passing to World::spawn or World::insert

CanvasContext
Entity

Lightweight unique ID, or handle, of an entity

EntityBuilder

Helper for incrementally constructing a bundle of components with dynamic component types

EntityRef

Handle to an entity with any component types

Graphics
Iter

Iterator over all of a world's entities

MissingComponent

Error indicating that an entity did not have a required component

Mutex

A spin-based lock providing mutually exclusive access to data.

MutexGuard

A generic guard that will protect some data access and uses either a ticket lock or a normal spin mutex.

NoSuchEntity

Error indicating that no entity with a particular ID exists

QueryBorrow

A borrow of a World sufficient to execute the query Q

QueryIter

Iterator over the set of entities with the components in Q

QueryMut

A query builder that's convertible directly into an iterator

QueryOne

A borrow of a World sufficient to execute the query Q on a single entity

Ref

Shared borrow of an entity's component

RefMut

Unique borrow of an entity's component

SpawnBatchIter

Entity IDs created by World::spawn_batch

TypeInfo

Metadata required to store a component

With

Query transformer skipping entities that do not have a T component

Without

Query transformer skipping entities that have a T component

World

An unordered collection of entities, each having any number of distinctly typed components

Enums

Access

Type of access a Query may have to an Archetype

ComponentError

Errors that arise when accessing components

Traits

Bundle

A statically typed collection of components

Canvas2dApi
Component

Types that can be components, implemented automatically for all Send + Sync + 'static types

DynamicBundle

A dynamically typed collection of components

Fetch

Streaming iterators over contiguous homogeneous ranges of components

Game
Query

A collection of component types to fetch from a World

Functions

random

Type Definitions

QueryItem

Type of values yielded by a query