fuchsia_inspect_contrib::id_enum

Function inspect_record_id_enum_mapped

Source
pub fn inspect_record_id_enum_mapped<R, V>(
    node: &Node,
    name: &str,
    map_fn: impl Fn(&R) -> Option<V>,
)
where R: IdEnum + IntoEnumIterator, V: WriteInspect,
Expand description

Record the mapping of IdEnum’s ids to mapped variant values. Only variants with mapped Some values are recorded.