2 releases

new 0.2.1 Mar 7, 2025
0.2.0 Mar 7, 2025

#287 in #slice


Used in indexland

MIT license

23KB
545 lines

indexland_derive

Provides derive macros for indexland. For better ergonomics add the "derive" feature to indexland instead of depending on this directly.

Example

// [`indexland_derive::Idx`](indexland_derive::Idx) is re-exported by indexland
use indexland::Idx;

#[derive(Idx)]
struct NodeId(u32);

#[derive(Idx)]
enum PrimaryColor {
    Red,
    Green,
    Blue,
};

License

MIT

Dependencies

~210–640KB
~15K SLoC