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

Method slice

crates/vm/src/stdlib/_io.rs:3654–3656  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

3652
3653 #[inline]
3654 fn slice(&self) -> &Wtf8 {
3655 &self.0.as_wtf8()[self.1.clone()]
3656 }
3657
3658 #[inline]
3659 fn slice_pystr(self, vm: &VirtualMachine) -> PyStrRef {

Callers 6

char_lenMethod · 0.45
slice_pystrMethod · 0.45
readlineMethod · 0.45

Calls 2

as_wtf8Method · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected