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

Method get_mut

cranelift/entity/src/list.rs:345–347  ·  view source on GitHub ↗

Get a mutable reference to a single element from the list.

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

Source from the content-addressed store, hash-verified

343
344 /// Get a mutable reference to a single element from the list.
345 pub fn get_mut<'a>(&'a mut self, index: usize, pool: &'a mut ListPool<T>) -> Option<&'a mut T> {
346 self.as_mut_slice(pool).get_mut(index)
347 }
348
349 /// Create a deep clone of the list, which does not alias the original list.
350 pub fn deep_clone(&self, pool: &mut ListPool<T>) -> Self {

Callers

nothing calls this directly

Calls 1

as_mut_sliceMethod · 0.45

Tested by

no test coverage detected