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

Method new

crates/ruff_python_formatter/src/string/normalize.rs:776–781  ·  view source on GitHub ↗
(input: &'str str, start_offset: usize)

Source from the content-addressed store, hash-verified

774
775impl<'str> CharIndicesWithOffset<'str> {
776 fn new(input: &'str str, start_offset: usize) -> Self {
777 Self {
778 chars: input[start_offset..].chars(),
779 next_offset: start_offset,
780 }
781 }
782}
783
784impl Iterator for CharIndicesWithOffset<'_> {

Callers

nothing calls this directly

Calls 1

charsMethod · 0.45

Tested by

no test coverage detected