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

Method is_empty

cranelift/entity/src/list.rs:294–298  ·  view source on GitHub ↗

Returns `true` if the list has a length of 0.

(&self)

Source from the content-addressed store, hash-verified

292
293 /// Returns `true` if the list has a length of 0.
294 pub fn is_empty(&self) -> bool {
295 // 0 is a magic value for the empty list. Any list in the pool array must have a positive
296 // length.
297 self.index == 0
298 }
299
300 /// Get the number of elements in the list.
301 pub fn len(&self, pool: &ListPool<T>) -> usize {

Callers 2

is_validMethod · 0.45
firstMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected