v0.4.0
Updated
-
Only allow set if the generations are equal
The generation in the Vec should always be the greatest generation
used. A generational index with a greater generation is
invalid. While it could be allowed, skipping generations should
be considered a logic bug because it wastes generations.IndexMut implementations are added for
GenVec
andUnmanagedGenVec
. -
Fix inconsistent error/panic in set vs set_or_push
If the index is out of bounds when calling set_or_push,
an error is returned instead of panicing. -
Fix default GenIndex type for UnmanagedGenVec
Type parameter specified (usize, u16) but should have been (I, G)
in case G or I is specified and they do not match the defaults.