[−][src]Function cddl_cat::flatten::slice_flatten_from_str
pub fn slice_flatten_from_str(
cddl_input: &str
) -> FlattenResult<BTreeMap<String, (Node, String)>>
Convert a CDDL schema in UTF-8 form into a (name, (rule, rule-string))
map.
This works the same as flatten_from_str
, but preserves a copy of the original
CDDL text alongside the IVT.