Function cddl_cat::flatten::slice_flatten
source · 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.