[−][src]Trait components_arena::ComponentIndex
An implementor of the ComponentIndex trait
can be used as an index part type of Id.
In the generational arena approach every component has an id consisting of two parts: index, and actual unique id. First part, index, is distinct for all alive components, but second one, unique, is distinct for all components created during application run time.
Safety
Safe implementation should purely, correctly and consistently implement
Clone, PartialEq, Eq, Hash, PartialOrd, and Ord traits.
The TryInto<usize> and TryFrom<usize> implementaions should be pure,
and if try_from(n) is Ok(x) then try_into(x) should be Ok(n).