Module bones_ecs::prelude

source ·
Expand description

The prelude.

Re-exports§

Modules§

  • General utilities for Bones meta-engine crates.
  • This module contains types that can be used to implement atomic borrowing.

Structs§

Enums§

Constants§

  • A fast, non-cryptographic, thread-local random number generator powered by turborand.

Statics§

Traits§

  • The BitSet API.
  • Trait implemented for types that can produce an instance of themselves from a Rust type.
  • This trait provides the means to easily generate all integer types, provided the main method underpinning this is implemented: GenCore::gen. Once implemented, the rest of the trait provides default implementations for generating all integer types, though it is not recommended to override these.
  • Trait implemented for types that have a [Schema].
  • Extension trait for automatically implementing all TurboRand methods, as long as the struct implements [TurboCore] & GenCore. All methods are provided as default implementations that build on top of [TurboCore] and GenCore, and thus are not recommended to be overridden, lest you potentially change the expected outcome of the methods.
  • Extension trait for Ulid.

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.
  • Hints to the compiler that the branch condition is likely to be true. Returns the value passed to it.
  • Hints to the compiler that the branch condition is unlikely to be true. Returns the value passed to it.

Type Aliases§

  • A [HashMap][hashbrown::HashMap] implementing aHash, a high speed keyed hashing algorithm intended for use in in-memory hashmaps.
  • A [HashSet][hashbrown::HashSet] implementing aHash, a high speed keyed hashing algorithm intended for use in in-memory hashmaps.

Derive Macros§