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

Function get_chars

crates/common/src/str.rs:362–364  ·  view source on GitHub ↗
(s: &str, range: impl RangeBounds<usize>)

Source from the content-addressed store, hash-verified

360}
361
362pub fn get_chars(s: &str, range: impl RangeBounds<usize>) -> &str {
363 try_get_chars(s, range).unwrap()
364}
365
366#[inline]
367pub fn char_range_end(s: &str, n_chars: usize) -> Option<usize> {

Callers 2

do_sliceMethod · 0.85
get_charsMethod · 0.85

Calls 2

try_get_charsFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected