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

Method rsplitn

crates/wtf8/src/lib.rs:1055–1059  ·  view source on GitHub ↗
(&self, n: usize, pat: &Wtf8)

Source from the content-addressed store, hash-verified

1053 }
1054
1055 pub fn rsplitn(&self, n: usize, pat: &Wtf8) -> impl Iterator<Item = &Self> {
1056 self.as_bytes()
1057 .rsplitn_str(n, pat)
1058 .map(|w| unsafe { Wtf8::from_bytes_unchecked(w) })
1059 }
1060
1061 pub fn trim(&self) -> &Self {
1062 let w = self.bytes.trim();

Callers 3

resolve_nameFunction · 0.80
rsplitMethod · 0.80
rpartitionMethod · 0.80

Calls 2

mapMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected