Crate bones_framework::asset::prelude::bones_utils
source · Expand description
General utilities for Bones meta-engine crates.
Modules§
- The prelude.
Structs§
- A
Ulid
with a human-readable ascii prefix. - A Ulid is a unique 128-bit lexicographically sortable identifier
Enums§
Constants§
- A fast, non-cryptographic, thread-local random number generator powered by turborand.
Traits§
- 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. - 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
] andGenCore
, 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.
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.