[−][src]Crate pui
A set of process unique identifiers that can be used to identifry types with minimal overhead within a single process
see the Identifier
trait for details
features
std
(default) - if you have the std
feature on, it will supercede the alloc
feature.
This allows you to use:
* std
types to implement various traits, for example Box<I>
will implemnt Identifier
I
* thread_local
types (from the *_tl
)
* make_global_reuse
(this requires internal locking using a Mutex
)
alloc
- this allows you to use without pulling in all of std
:
* alloc
types to implement various traits, for example Box<I>
will implemnt Identifier
I
nightly
- this allows you to use:
* atomics on no_std
targets that don't support 64-bit atomics
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 | feature="std" A type based identifier that uses a unique type parameter to assert uniqueness |
Macros
make_anon_typeid | Create a new |
make_counter | Create a new type that implements |
make_counter_tl | feature="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 | feature="std" Create a new type that can be used with |
Traits
Identifier | An |
Scalar | a type that can be used as the backing type in |