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

Method len

cranelift/entity/src/list.rs:301–304  ·  view source on GitHub ↗

Get the number of elements in the list.

(&self, pool: &ListPool<T>)

Source from the content-addressed store, hash-verified

299
300 /// Get the number of elements in the list.
301 pub fn len(&self, pool: &ListPool<T>) -> usize {
302 // Both the empty list and any invalidated old lists will return `None`.
303 pool.len_of(self).unwrap_or(0)
304 }
305
306 /// Returns `true` if the list is valid
307 pub fn is_valid(&self, pool: &ListPool<T>) -> bool {

Callers 15

_indentFunction · 0.45
parse_multilineFunction · 0.45
run_testFunction · 0.45
run_testFunction · 0.45
declare_functionMethod · 0.45
apply_func_renameMethod · 0.45
collect_returnsMethod · 0.45
schedule_jobsMethod · 0.45
handle_replyMethod · 0.45
drain_threadsMethod · 0.45
report_slow_testsMethod · 0.45

Calls 1

len_ofMethod · 0.80

Tested by 4

run_testFunction · 0.36
run_testFunction · 0.36
filecheck_textFunction · 0.36
unique_isaMethod · 0.36