MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / Entry

Enum Entry

src/entity/sparse.rs:367–375  ·  view source on GitHub ↗

Entry for an existing key-value pair in an [`SparseMap`] or a vacant location to insert one.

Source from the content-addressed store, hash-verified

365where
366 K: EntityRef,
367{
368 /// Existing slot with equivalent key.
369 Occupied(OccupiedEntry<'a, K, V>),
370 /// Vacant slot (no equivalent key in the map).
371 Vacant(VacantEntry<'a, K, V>),
372}
373
374impl<'a, K, V> Entry<'a, K, V>
375where
376 K: EntityRef,
377{
378 /// Inserts the given default value in the entry if it is vacant and returns a mutable

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected