Skip to main content

copy_marked_flattrs

Function copy_marked_flattrs 

Source
pub fn copy_marked_flattrs(dst: &mut Flattrs, src: &Flattrs, marker: Key<bool>)
Expand description

Copy every entry from src to dst whose declared attribute key carries the bool meta marker marker with value true. Overwrite semantics (see Flattrs::set_serialized). Entries whose declared key lacks the marker — or whose key_hash does not resolve to a declared key in the current binary’s inventory — are silently skipped.

Generic category-filter Flattrs → Flattrs copy. The companion of stamp_marked_attrs_into_flattrs for callers that already have a source Flattrs in hand (forwarding, hoisting) rather than an in-memory Attrs.