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

Method as_mut_slice

cranelift/codegen/src/ir/jumptable.rs:65–67  ·  view source on GitHub ↗

Access the jump table as a mutable slice. This excludes the default block.

(&mut self)

Source from the content-addressed store, hash-verified

63
64 /// Access the jump table as a mutable slice. This excludes the default block.
65 pub fn as_mut_slice(&mut self) -> &mut [BlockCall] {
66 &mut self.table.as_mut_slice()[1..]
67 }
68
69 /// Returns an iterator to the jump table, excluding the default block.
70 #[deprecated(since = "7.0.0", note = "please use `.as_slice()` instead")]

Callers 5

all_branches_mutMethod · 0.45
iter_mutMethod · 0.45
replace_block_paramMethod · 0.45
update_argsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected