[][src]Function cddl_cat::flatten::slice_flatten

pub fn slice_flatten(
    cddl: &CddlSlice
) -> FlattenResult<BTreeMap<String, (Node, String)>>

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.