Module token

Source
Expand description

Implementations of Token used with TokenRefCell.

The recommended token implementation is BoxToken.

Structs§

AllocatedToken
Dummy struct which can be used with smart-pointer-based token implementations.
BoxToken
A wrapper for Box<AllocatedToken>.
DynamicToken
Dynamic token, equivalent to an usize in memory.
LifetimeToken
Lifetime-based token implementation.
LocalTypeToken
Zero-sized thread-local token implementation which use a type as unicity marker.
PtrId
Wrapper for pointer used as Token::Id .
RefToken
Abstraction of a reference as a token.
TypeToken
Zero-sized token implementation which use a type as unicity marker.

Traits§

Token
Token type to be used with TokenRefCell.