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

Method get_disjoint_mut

cranelift/entity/src/primary.rs:197–202  ·  view source on GitHub ↗

Returns mutable references to many elements at once. Returns an error if an element does not exist, or if the same key was passed more than once.

(
        &mut self,
        indices: [K; N],
    )

Source from the content-addressed store, hash-verified

195 /// Returns an error if an element does not exist, or if the same key was passed more than
196 /// once.
197 pub fn get_disjoint_mut<const N: usize>(
198 &mut self,
199 indices: [K; N],
200 ) -> Result<[&mut V; N], slice::GetDisjointMutError> {
201 self.elems.get_disjoint_mut(indices.map(|k| k.index()))
202 }
203
204 /// Performs a binary search on the values with a key extraction function.
205 ///

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected