Utility function to convert a slice of objects that support InstanceId into a HashMap. We do this rather than using a HashSet and relying on the object's own equality and hash methods, because we do not want to force every user of dedup to apply equality and hash only to its id.
(slice: &[Drc<T, R>])
source not stored for this graph (policy: none)
no test coverage detected