pub fn slice_flatten(cddl: &CddlSlice) -> FlattenResult<RulesWithStrings>
Expand description

Convert an already-parsed cddl AST into a (name, (rule, rule-string)) map.

This works the same as flatten, but preserves a copy of the original CDDL text alongside the IVT.