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

Method clear

cranelift/codegen/src/traversals.rs:77–81  ·  view source on GitHub ↗

Clear this DFS, but keep its allocations for future reuse.

(&mut self)

Source from the content-addressed store, hash-verified

75
76 /// Clear this DFS, but keep its allocations for future reuse.
77 pub fn clear(&mut self) {
78 let Dfs { stack, seen } = self;
79 stack.clear();
80 seen.clear();
81 }
82}
83
84/// An iterator that yields pairs of `(Event, ir::Block)` items as it performs a

Callers 1

iterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected