Expand description
Imports all you need at once.
Re-exports§
Modules§
- str_
util - String utilities.
Macros§
- filter
- Implements
Filterfor the type, and implementsSelectoptionally ifTargetis defined. - log
- Prints out the given string regardless of build target.
- request
- Implements
Requestfor the type. - tinfo
- Creates
TypeInfofrom the given type and reflects whether the type implementsSend,Sync,Default, andCloneto the TypeInfo.
Structs§
- Chunk
Sparse Set - Two-dimensional storage containing heterogeneous data types based on
ChunkAnyVec. - Commander
- Ecs
- A handle to
EcsApp, which is real ecs instance. - EcsApp
- An ECS instance.
- EcsExt
- Extended
Ecswith additional methods. - EcsPar
- A wrapper type of Rayon’s parallel iterator.
- EntWrite
- Write request for a set of entity container.
- Entity
Id - A specific entity identifier.
- Entity
Index - Index to a specific entity container.
- Entity
Name - Unique entity name.
- Entity
Reg - A descriptor for registration of an entity storage.
- FnOnce
System - A system that is
FnOnce. - FnSystem
- A system that is
FnMut. - Leaked
EcsApp - A handle to an
EcsApp. - Post
- A
Resourceto send command or future. - Power
OfTwo - A type representing 2^k
usize. - Read
- Read request for a set of components.
- ResRead
- Read request for a set of resources.
- ResWrite
- Write request for a set of resources.
- Resource
Desc - A descriptor for registration of a resource.
- Resource
Id - A unique identifier for a resource item.
- Resource
Index - A unique resource identifier.
- Response
- A response corresponding to a
Request. - Sparse
Set - Two-dimensional storage containing heterogeneous data types based on
AnyVec. - SubContext
- Context for a sub worker.
- System
Bond - A internal type for support flexible APIs.
- System
Desc - A descriptor for a
System. - System
Id - Unique system identifier consisting of group index and system index.
- With
- A value with another value.
- Worker
- Worker handle.
- Worker
Builder Workerbuilder.- Worker
Pool - A data type holding
Workers. - Write
- Write request for a set of components.
Enums§
- EcsError
- An error generated by ECS instance.
- Insert
Pos - A position to insert a system into system scheduling list.
- Or
- A type that either
AorB. - System
State - State of a system.
Traits§
- AddEntity
- A trait for adding or removing component values from an entity container.
- AsEntity
Reg - A trait for generating
EntityReg. - AsWorker
Pool - Common interface for worker pool implementations.
- Borrow
Component - A trait for borrowing a component column from an entity container.
- Command
- Command to an ECS instance.
- Component
- Ordinary rust types.
- Components
- A set of
Components. - Contain
Entity - A trait for collecting heterogeneous component types.
- EcsEntry
- Common interafaces that ECS instance should provide to clients.
- Entity
- A set of components.
- Filter
- A trait for selecting certain entities that meet
All,Any, andNoneconditions. - From
Parallel Iterator FromParallelIteratorimplements the creation of a collection from aParallelIterator. By implementingFromParallelIteratorfor a given type, you define how it will be created from an iterator.- Help
Execute Many Commands - A helper trait for
EcsEntry::execute_commands. - Indexed
Parallel Iterator - An iterator that supports “random access” to its data, meaning that you can split it at arbitrary indices and draw data from those points.
- Into
EcsPar - A trait for wrapping Rayon’s parallel iterators in
EcsParin order to intercept function call to a Rayon API then to execute them in the ECS context. - Into
Parallel Iterator IntoParallelIteratorimplements the conversion to aParallelIterator.- Into
Parallel RefIterator IntoParallelRefIteratorimplements the conversion to aParallelIterator, providing shared references to the data.- Into
Parallel RefMut Iterator IntoParallelRefMutIteratorimplements the conversion to aParallelIterator, providing mutable references to the data.- Parallel
Bridge - Conversion trait to convert an
Iteratorto aParallelIterator. - Parallel
Drain Full ParallelDrainFullcreates a parallel iterator that moves all items from a collection while retaining the original capacity.- Parallel
Drain Range ParallelDrainRangecreates a parallel iterator that moves a range of items from a collection while retaining the original capacity.- Parallel
Extend ParallelExtendextends an existing collection with items from aParallelIterator.- Parallel
Iterator - Parallel version of the standard iterator trait.
- Parallel
Slice - Parallel extensions for slices.
- Parallel
Slice Mut - Parallel extensions for mutable slices.
- Parallel
String - Parallel extensions for strings.
- Register
Component - A trait for adding or removing component types from an entity container.
- Request
- A system request for a components, resources, and entity containers.
- Resource
- Unique data in the entire ecs instance.
- Select
- A trait for selecting a certain
Targetfrom entities that meetAll,Any, andNoneconditions. - System
- System is a type that accesses components, entities, or resoruces.
- Take
Recur - A trait for taking inner value out.
- Work
- A trait for worker.
Type Aliases§
- Component
Key - Unique identifier for a type implementing
Component. - DynResult
- A
Resultwith super flexible error typeBox<dyn Error + Send + Sync + 'static>. - Tick
- Monotonically increasing count over scheduling.
- With
Result - A value with
Result.