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

Method clear

cranelift/codegen/src/ir/instructions.rs:136–138  ·  view source on GitHub ↗

Clear out the arguments list.

(&mut self, pool: &mut ValueListPool)

Source from the content-addressed store, hash-verified

134
135 /// Clear out the arguments list.
136 pub fn clear(&mut self, pool: &mut ValueListPool) {
137 self.values.truncate(1, pool)
138 }
139
140 /// Appends multiple elements to the arguments.
141 pub fn extend<I, T>(&mut self, elements: I, pool: &mut ValueListPool)

Callers

nothing calls this directly

Calls 1

truncateMethod · 0.45

Tested by

no test coverage detected