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

Method starts_with

crates/wtf8/src/lib.rs:1161–1163  ·  view source on GitHub ↗
(&self, w: impl AsRef<Wtf8>)

Source from the content-addressed store, hash-verified

1159 }
1160
1161 pub fn starts_with(&self, w: impl AsRef<Wtf8>) -> bool {
1162 self.bytes.starts_with_str(w.as_ref())
1163 }
1164
1165 pub fn strip_prefix(&self, w: impl AsRef<Wtf8>) -> Option<&Self> {
1166 self.bytes

Callers 15

shell_execFunction · 0.80
complete_optMethod · 0.80
read_homeFunction · 0.80
new_py_ssl_socketMethod · 0.80
semaphore_nameFunction · 0.80
nextMethod · 0.80
emit_next_tokenFunction · 0.80
validate_hostnameFunction · 0.80
parse_cipher_stringFunction · 0.80
_wrap_socketMethod · 0.80
format_complex_localeMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected