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

Method rsplit

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

Source from the content-addressed store, hash-verified

1047 }
1048
1049 pub fn rsplit(&self, pat: &Wtf8) -> impl Iterator<Item = &Self> {
1050 self.as_bytes()
1051 .rsplit_str(pat)
1052 .map(|w| unsafe { Wtf8::from_bytes_unchecked(w) })
1053 }
1054
1055 pub fn rsplitn(&self, n: usize, pat: &Wtf8) -> impl Iterator<Item = &Self> {
1056 self.as_bytes()

Callers 3

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45

Calls 2

mapMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected