Crate utils

Crate utils 

Source
Expand description

General utilities for first-party Bevy engine crates.

Modules§

cfg
Configuration information for this crate.
prelude
The utilities prelude.

Macros§

once
Call some expression only once per call site.

Structs§

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.

Traits§

PreHashMapExt
Extension methods intended to add functionality to PreHashMap.
TypeIdMapExt
Extension trait to make use of TypeIdMap more ergonomic.

Functions§

default
An ergonomic abbreviation for Default::default() to make initializing structs easier.

Type Aliases§

PreHashMap
A HashMap pre-configured to use Hashed keys and PassHash passthrough hashing. Iteration order only depends on the order of insertions and deletions.
TypeIdMap
A specialized hashmap type with Key of TypeId Iteration order only depends on the order of insertions and deletions.