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

Method iter

cranelift/codegen/src/ranges.rs:61–68  ·  view source on GitHub ↗

Visit ranges in unspecified order, paired with the index each range occurs at.

(
        &self,
    )

Source from the content-addressed store, hash-verified

59 /// Visit ranges in unspecified order, paired with the index each
60 /// range occurs at.
61 pub fn iter(
62 &self,
63 ) -> impl DoubleEndedIterator<Item = (usize, Range<usize>)> + ExactSizeIterator + '_ {
64 self.ranges
65 .array_windows()
66 .enumerate()
67 .map(|(index, [lo, hi])| (self.map_index(index), *lo as usize..*hi as usize))
68 }
69
70 /// Reverse this list of ranges, so that the first range is at the
71 /// last index and the last range is at the first index.

Callers 15

mainFunction · 0.45
run_compilationFunction · 0.45
totalMethod · 0.45
fmtMethod · 0.45
do_remove_constant_phisFunction · 0.45
post_order_dfsFunction · 0.45
inline_oneFunction · 0.45
append_stack_map_entriesFunction · 0.45
fixup_inst_that_returnsFunction · 0.45
map_jump_tableMethod · 0.45
split_off_return_blockFunction · 0.45

Calls 2

mapMethod · 0.45
map_indexMethod · 0.45

Tested by

no test coverage detected