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

Method find

crates/vm/src/builtins/str.rs:1191–1194  ·  view source on GitHub ↗
(&self, args: FindArgs)

Source from the content-addressed store, hash-verified

1189
1190 #[pymethod]
1191 fn find(&self, args: FindArgs) -> isize {
1192 self._find(args, |r, s| Some(Self::_to_char_idx(r, r.find(s)?)))
1193 .map_or(-1, |v| v as isize)
1194 }
1195
1196 #[pymethod]
1197 fn rfind(&self, args: FindArgs) -> isize {

Callers 9

type_ignores_from_sourceFunction · 0.45
find_newlineMethod · 0.45
indexMethod · 0.45
fill_locals_from_argsMethod · 0.45
f_backMethod · 0.45
get_signatureFunction · 0.45
with_vmFunction · 0.45
core_frozen_initsFunction · 0.45

Calls 2

SomeClass · 0.50
_findMethod · 0.45

Tested by

no test coverage detected