MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / last

Method last

cranelift/entity/src/primary.rs:146–150  ·  view source on GitHub ↗

Returns the last element that was inserted in the map.

(&self)

Source from the content-addressed store, hash-verified

144
145 /// Returns the last element that was inserted in the map.
146 pub fn last(&self) -> Option<(K, &V)> {
147 let len = self.elems.len();
148 let last = self.elems.last()?;
149 Some((K::new(len - 1), last))
150 }
151
152 /// Returns the last element that was inserted in the map.
153 pub fn last_mut(&mut self) -> Option<(K, &mut V)> {

Callers 15

runFunction · 0.45
report_slow_testsMethod · 0.45
get_functionMethod · 0.45
push_frameMethod · 0.45
pop_frameMethod · 0.45
add_rule_constraintsFunction · 0.45
add_varMethod · 0.45
allocate_innerMethod · 0.45
assign_loop_levelsMethod · 0.45
truncate_last_branchMethod · 0.45
optimize_branchesMethod · 0.45

Calls 2

newFunction · 0.50
lenMethod · 0.45

Tested by 1

mainFunction · 0.36