Module bevy::utils

source ·
Expand description

Various miscellaneous utilities for easing development

Modules

This crate is a Rust port of Google’s high-performance SwissTable hash map, adapted to make it a drop-in replacement for Rust’s standard HashMap and HashSet types.
Traits used by label implementations
A scoped, structured logging and diagnostics system.

Macros

Macro to define a new label trait

Structs

A Hasher for hashing an arbitrary stream of bytes.
A Duration type to represent a span of time, typically used for system timeouts.
A hasher builder that will create a fixed hasher.
A wrapper for floats that implements Ord, Eq, and Hash traits.
A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute. It also enables faster PartialEq comparisons by short circuiting on hash equality. See PassHash and PassHasher for a “pass through” BuildHasher and Hasher implementation designed to work with Hashed See PreHashMap for a hashmap pre-configured to use Hashed keys.
A BuildHasher that results in a PassHasher.
A Universally Unique Identifier (UUID).

Traits

Extension methods intended to add functionality to PreHashMap.

Functions

An ergonomic abbreviation for Default::default() to make initializing structs easier. This is especially helpful when combined with “struct update syntax”.
Shortens a type name to remove all module paths.

Type Definitions

A HashMap implementing aHash, a high speed keyed hashing algorithm intended for use in in-memory hashmaps.
A HashSet implementing aHash, a high speed keyed hashing algorithm intended for use in in-memory hashmaps.
A HashMap pre-configured to use Hashed keys and PassHash passthrough hashing.
A stable hash map implementing aHash, a high speed keyed hashing algorithm intended for use in in-memory hashmaps.
A stable hash set implementing aHash, a high speed keyed hashing algorithm intended for use in in-memory hashmaps.