Expand description
General utilities for first-party Bevy engine crates.
Modules§
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 u64 segments
Nand 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
IdMap Entry - The
Entrytype forTypeIdMap. Entry for an existing key-value pair in anIndexMapor a vacant location to insert one.
Traits§
- PreHash
MapExt - Extension methods intended to add functionality to
PreHashMap. - Type
IdMap Ext - Extension trait to make use of
TypeIdMapmore ergonomic.
Functions§
- default
- An ergonomic abbreviation for
Default::default()to make initializing structs easier.