MCPcopy Index your code
hub / github.com/RustPython/RustPython / find_iter

Method find_iter

crates/wtf8/src/lib.rs:1120–1122  ·  view source on GitHub ↗
(&self, pat: &Wtf8)

Source from the content-addressed store, hash-verified

1118 }
1119
1120 pub fn find_iter(&self, pat: &Wtf8) -> impl Iterator<Item = usize> {
1121 memchr::memmem::find_iter(self.as_bytes(), pat.as_bytes())
1122 }
1123
1124 pub fn rfind_iter(&self, pat: &Wtf8) -> impl Iterator<Item = usize> {
1125 memchr::memmem::rfind_iter(self.as_bytes(), pat.as_bytes())

Callers 6

countMethod · 0.80
replace_deleteMethod · 0.80
replace_in_placeMethod · 0.80
replace_generalMethod · 0.80
count_substringFunction · 0.80
countMethod · 0.80

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected