kermit-derive 0.0.7

Kermit derive macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# kermit-derive

Procedural macros for the Kermit workspace. Currently ships a single derive:

## `#[derive(IntoTrieIter)]`

Generates an `IntoIterator` impl for a trie-iterator struct, wrapping it in `kermit_iters::TrieIteratorWrapper` so the trie can be consumed with a plain `for` loop that yields `Vec<usize>` tuples.

Requirements on the annotated struct:

- Must implement `kermit_iters::TrieIterator` (which extends `kermit_iters::LinearIterator`).
- Must have a single lifetime parameter named `'a`.

A runnable example lives in [`tests/derive_into_trie_iter.rs`](tests/derive_into_trie_iter.rs). Production uses are in `kermit-ds` (`TreeTrieIter`, `ColumnTrieIter`).