Skip to content

v0.4.0

Compare
Choose a tag to compare
@bluk bluk released this 16 Apr 05:24
· 30 commits to trunk since this release
v0.4.0
6959523

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 and UnmanagedGenVec.

  • 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.