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

Method do_get

crates/vm/src/builtins/str.rs:1811–1813  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

1809 type Sliced = Self;
1810
1811 fn do_get(&self, index: usize) -> Self::Item {
1812 self.data.nth_char(index)
1813 }
1814
1815 fn do_slice(&self, range: Range<usize>) -> Self::Sliced {
1816 match self.as_str_kind() {

Callers

nothing calls this directly

Calls 1

nth_charMethod · 0.80

Tested by

no test coverage detected