Expand description
pui-core provides process unique identifiers. These identifiers, as the name
suggests are unique within the process they reside in. pui-core also provides
thread-local unique identifiers that are unique within the thread they reside in.
Modules§
- dynamic
- A dynamically created type that is guarnteed to be unique on the given thread or process
- pool
- A pool of ids that can be used to reuse ids in
Dynamic. - scalar
Scalardefined types that can be used to back theScalarAllocators- scoped
- A
ScopedIdentifier
Macros§
- global_
pool - Create a new type that implements
PoolandPoolMutthat can be used withDynamic - scalar_
allocator - Construct a new
ScalarAllocator - scope
- Create a new
Scoped<'_>with the given name without using a closure
Traits§
- Identifier
- An
Identifieris a process unique identifier - Init
- A const initializer
- OneShot
Identifier - An
Identifierwho’s tokens are guaranteed to never be owned by anotherIdentifier, even if this one is dropped - Token
- A type that an
Identifierproduces and is owned by anIdentifier - Trivial
- A
Tokenthat has no safety requirements