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

Method with_max_index

src/entity/sparse.rs:73–77  ·  view source on GitHub ↗
(max_index: usize)

Source from the content-addressed store, hash-verified

71 #[inline]
72 #[must_use]
73 pub fn with_max_index(max_index: usize) -> Self {
74 let mut map = Self::new();
75 map.grow_to(max_index);
76 map
77 }
78
79 /// Resizes the map to be large enough to hold entity references with an
80 /// index below `max_index`.

Callers

nothing calls this directly

Calls 1

grow_toMethod · 0.45

Tested by

no test coverage detected