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

Method get

cranelift/entity/src/list.rs:322–324  ·  view source on GitHub ↗

Get a single element from the list.

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

Source from the content-addressed store, hash-verified

320
321 /// Get a single element from the list.
322 pub fn get(&self, index: usize, pool: &ListPool<T>) -> Option<T> {
323 self.as_slice(pool).get(index).cloned()
324 }
325
326 /// Get the first element from the list.
327 pub fn first(&self, pool: &ListPool<T>) -> Option<T> {

Callers 2

len_ofMethod · 0.45
allocMethod · 0.45

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected