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

Method push

src/entity/primary_map.rs:144–148  ·  view source on GitHub ↗
(&mut self, v: V)

Source from the content-addressed store, hash-verified

142 /// Append `v` to the mapping, assigning a new key which is returned.
143 #[inline]
144 pub fn push(&mut self, v: V) -> K {
145 let k = self.next_key();
146 self.elems.push(v);
147 k
148 }
149
150 /// Appends multiple values from the given iterator, returning a range of
151 /// keys for the newly added elements.

Callers 15

make_riscv_reginfoFunction · 0.80
make_unitsMethod · 0.80
make_regsMethod · 0.80
make_reg_groupMethod · 0.80
make_aarch64_reginfoFunction · 0.80
releaseMethod · 0.80
unevict_allMethod · 0.80
unevict_for_regMethod · 0.80
get_scratch_regMethod · 0.80
do_moveMethod · 0.80
add_rematMethod · 0.80
add_moveMethod · 0.80

Calls 1

next_keyMethod · 0.80

Tested by

no test coverage detected