Expand description
General utilities for first-party Bevy engine crates.
Modules§
- cfg
- Configuration information for this crate.
- memory_
size - Types for representing the size of objects in memory.
- prelude
- The utilities prelude.
Macros§
- define_
atomic_ id - Defines a 32-bit id type which guarantees global uniqueness via atomics on a static global.
- once
- Call some expression only once per call site.
Structs§
- Bloom
Filter - A Bloom filter, parameterized by number of
u64segmentsNand number of hash functionsK. - Buffered
Channel - An asynchronous MPSC channel that buffers messages and reuses allocations with thread locals.
- Buffered
Receiver - A wrapper around a
Receiverthat returnsRecycledVecs to automatically return buffers to theBufferedChannelpool. - Buffered
Sender - A
BufferedChannelsender that buffers messages locally, flushing it when the sender is dropped orBufferedChannel::chunk_sizeis reached. - Debug
Name - Wrapper to help debugging ECS issues. This is used to display the names of systems, components, …
- OnDrop
- A type which calls a function when dropped. This can be used to ensure that cleanup code is run even in case of a panic.
- Parallel
- A cohesive set of thread-local values of a given type.
- Recycled
Vec - A wrapper around a
Vec<T>that automatically returns it to theBufferedChannel’s pool when dropped.
Enums§
- Type
IdIndex MapEntry - Entry for an existing key-value pair in an
IndexMapor a vacant location to insert one. - Type
IdMap Entry - Entry for an existing key-value pair in an
IndexMapor a vacant location to insert one.
Traits§
- PreHash
MapExt - Extension methods intended to add functionality to
PreHashMap. - Type
IdHash MapExt - Extension trait to make use of
TypeIdHashMapmore ergonomic. - Type
IdMap Ext - Extension trait to make use of
TypeIdIndexMapmore ergonomic.
Functions§
- default
- An ergonomic abbreviation for
Default::default()to make initializing structs easier.
Type Aliases§
- PreHash
Map - A
HashMappre-configured to useHashedkeys andPassHashpassthrough hashing. Iteration order only depends on the order of insertions and deletions. - Type
IdHash Map - A specialized hash map type with a key of
TypeId. - Type
IdHash MapEntry - Shortcut for
EntrywithFixedHasheras the default hashing provider. - Type
IdIndex Map - A specialized index map type with a key of
TypeId. Iteration order only depends on the order of insertions and deletions. - Type
IdMap Deprecated - Deprecated compatibility alias for
TypeIdIndexMap.