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

Method take

cranelift/entity/src/list.rs:383–385  ·  view source on GitHub ↗

Take all elements from this list and return them as a new list. Leave this list empty. This is the equivalent of `Option::take()`.

(&mut self)

Source from the content-addressed store, hash-verified

381 ///
382 /// This is the equivalent of `Option::take()`.
383 pub fn take(&mut self) -> Self {
384 mem::replace(self, Default::default())
385 }
386
387 /// Appends an element to the back of the list.
388 /// Returns the index where the element was inserted.

Callers 15

dropMethod · 0.45
drain_threadsMethod · 0.45
stepFunction · 0.45
push_frameMethod · 0.45
consumeMethod · 0.45
parse_data_value_listMethod · 0.45
nextMethod · 0.45
free_memoryMethod · 0.45
try_ensure_capacityMethod · 0.45
iter_scalarsMethod · 0.45
clearMethod · 0.45
nextMethod · 0.45

Calls 1

replaceFunction · 0.50

Tested by 15

run_cwasm_from_stdinFunction · 0.36
preview2_stdinFunction · 0.36
p2_cli_stdin_emptyFunction · 0.36
p2_cli_stdinFunction · 0.36
p2_cli_splice_stdinFunction · 0.36
runFunction · 0.36
spawnMethod · 0.36
_finishMethod · 0.36
run_much_stdoutFunction · 0.36
p3_cli_read_stdinFunction · 0.36
p3_cli_stdout_flushFunction · 0.36
wizenFunction · 0.36