[−][src]Crate pui
A set of process unique identifiers that can be used to identify values with minimal overhead within a single process
see the Identifier
trait for details
features
-
std
(default) - if you have thestd
feature on, it will supercede thealloc
feature. This allows you to use:std
types to implement various traits, for exampleBox<I>
will implemntIdentifier
I
thread_local
types (from the*_tl
)make_global_reuse
(this requires internal locking using aMutex
)
-
alloc
- this allows you to use without pulling in all ofstd
:alloc
types to implement various traits, for exampleBox<I>
will implemntIdentifier
I
-
nightly
- this allows you to use:- atomics on
no_std
targets that don't support 64-bit atomics
- atomics on
Modules
runtime | A runtime checked identifier |
scoped | Use lifetimes to guarantee unique identifiers. |
typeid | A type based identifier that uses a unique type parameter to assert uniqueness |
typeid_tl | std A type based identifier that uses a unique type parameter to assert uniqueness |
Macros
make_anon_typeid | Create a new |
make_global_id_alloc | Create a new type that implements |
make_global_id_alloc_tl | std Create a new type that implements |
make_global_pool | Create a new type that implements |
make_scoped | Create a new scoped identifier with the provided name |
make_typeid | Create a new type that can be used with |
make_typeid_tl | std Create a new type that can be used with |
Traits
Handle | A handle to an |
Identifier | An |
Scalar | a type that can be used as the backing type in |
Trivial | a type that has no safety (library) invariants |