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

Method depth

cranelift/codegen/src/scoped_hash_map.rs:208–213  ·  view source on GitHub ↗

Return the current scope depth.

(&self)

Source from the content-addressed store, hash-verified

206
207 /// Return the current scope depth.
208 pub fn depth(&self) -> usize {
209 self.generation_by_depth
210 .len()
211 .checked_sub(1)
212 .expect("generation_by_depth cannot be empty")
213 }
214}
215
216#[cfg(test)]

Callers 4

entryMethod · 0.80
insert_if_absentMethod · 0.80
start_blockMethod · 0.80
process_elab_stackMethod · 0.80

Calls 3

checked_subMethod · 0.80
expectMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected