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

Function slice_error_fail

crates/wtf8/src/lib.rs:1345–1348  ·  view source on GitHub ↗
(s: &Wtf8, begin: usize, end: usize)

Source from the content-addressed store, hash-verified

1343#[inline(never)]
1344#[track_caller]
1345pub fn slice_error_fail(s: &Wtf8, begin: usize, end: usize) -> ! {
1346 assert!(begin <= end);
1347 panic!("index {begin} and/or {end} in `{s:?}` do not lie on character boundary");
1348}
1349
1350/// Iterator for the code points of a WTF-8 string.
1351///

Callers 1

indexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected