df-derive-macros 0.3.0

Procedural derive macro implementation for df-derive.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::LeafSpec;

impl LeafSpec {
    pub fn walk_terminal_leaves<'a>(&'a self, f: &mut impl FnMut(&'a Self)) {
        match self {
            Self::Tuple(elements) => {
                for element in elements {
                    element.leaf_spec.walk_terminal_leaves(f);
                }
            }
            leaf => f(leaf),
        }
    }
}