MCPcopy Create free account
hub / github.com/astral-sh/ruff / next

Method next

crates/ruff_python_formatter/src/string/normalize.rs:787–793  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

785 type Item = (usize, char);
786
787 fn next(&mut self) -> Option<Self::Item> {
788 self.chars.next().map(|c| {
789 let index = self.next_offset;
790 self.next_offset += c.len_utf8();
791 (index, c)
792 })
793 }
794}
795
796impl FusedIterator for CharIndicesWithOffset<'_> {}

Callers 15

find_keywordFunction · 0.45
colon_rangeFunction · 0.45
fmtMethod · 0.45
fmt_fieldsMethod · 0.45
formatFunction · 0.45
add_iterMethod · 0.45
run_action_queueMethod · 0.45
triple_quotedMethod · 0.45
rawMethod · 0.45
normalize_stringFunction · 0.45

Calls 2

len_utf8Method · 0.80
mapMethod · 0.45

Tested by

no test coverage detected