1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Procedural macros for the Kermit crate.
//!
//! Provides `#[derive(IntoTrieIter)]` to automatically implement
//! `IntoIterator` for trie iterator types, converting them into a
//! `TrieIteratorWrapper` that yields `Vec<usize>` tuples.
use ;
/// Derives `IntoIterator` for a trie iterator struct, wrapping it in a
/// `TrieIteratorWrapper` so that `for tuple in iter { ... }` works directly.
///
/// The annotated struct must implement `TrieIterator` and have a lifetime
/// parameter `'a`.