Skip to main content

normalize

Function normalize 

Source
pub fn normalize(
    map: BTreeMap<u64, RawEntity>,
) -> (BTreeMap<u64, RawEntity>, Vec<&'static str>, Vec<(u64, &'static str)>)
Expand description

Normalize the raw graph in place. Returns the surviving map (non-normalizable entities removed; their referrers cascade-drop later via the drop pass) plus two separate channels: warns = rewrite notes (fix, kept), slot_drops = (id, reason) per entity removed here (surfaced as drops).