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
Scalar
defined types that can be used to back theScalarAllocator
s- scoped
- A
Scoped
Identifier
Macros§
- global_
pool - Create a new type that implements
Pool
andPoolMut
that 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
Identifier
is a process unique identifier - Init
- A const initializer
- OneShot
Identifier - An
Identifier
who’s tokens are guaranteed to never be owned by anotherIdentifier
, even if this one is dropped - Token
- A type that an
Identifier
produces and is owned by anIdentifier
- Trivial
- A
Token
that has no safety requirements