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

Method into_boxed_slice

cranelift/entity/src/primary.rs:189–191  ·  view source on GitHub ↗

Consumes this `PrimaryMap` and produces a `BoxedSlice`.

(self)

Source from the content-addressed store, hash-verified

187
188 /// Consumes this `PrimaryMap` and produces a `BoxedSlice`.
189 pub fn into_boxed_slice(self) -> BoxedSlice<K, V> {
190 unsafe { BoxedSlice::<K, V>::from_raw(Box::<[V]>::into_raw(self.elems.into_boxed_slice())) }
191 }
192
193 /// Returns mutable references to many elements at once.
194 ///

Callers 9

basic_data_contextFunction · 0.45
try_ensure_capacityMethod · 0.45
basicFunction · 0.45
iterFunction · 0.45
iter_revFunction · 0.45
keysFunction · 0.45
keys_revFunction · 0.45
valuesFunction · 0.45
values_revFunction · 0.45

Calls

no outgoing calls

Tested by 8

basic_data_contextFunction · 0.36
basicFunction · 0.36
iterFunction · 0.36
iter_revFunction · 0.36
keysFunction · 0.36
keys_revFunction · 0.36
valuesFunction · 0.36
values_revFunction · 0.36