Module crayon::utils::handle [] [src]

Structs

Handle

Handle is made up of two field, index and version. index are usually used to indicated address into some kind of space. This value is recycled when an Handle is freed to save address. However, this means that you could end up with two different Handle with identical indices. We solve this by introducing version.

Type Definitions

HandleIndex

HandleIndex type is arbitrary. Keeping it 32-bits allows for a single 64-bits word per Handle.