Crate bones_utils

Crate bones_utils 

Source
Expand description

General utilities for Bones meta-engine crates.

Modules§

prelude
The prelude.

Structs§

LabeledId
A Ulid with a human-readable ascii prefix.
Ulid
A Ulid is a unique 128-bit lexicographically sortable identifier

Enums§

LabeledIdCreateError
Error creating a LabeledId.
LabledIdParseError
Errors that can happen while parsing a LabeledId.

Constants§

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

Traits§

GenCore
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.
TurboRand
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.
UlidExt
Extension trait for Ulid.

Functions§

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

Type Aliases§

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

Derive Macros§

Deref
Derive macro for deriving Deref on structs with one field.
DerefMut
Derive macro for deriving DerefMut on structs with one field.