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

Method slice

crates/vm/src/codecs.rs:543–545  ·  view source on GitHub ↗
(p: &[u8])

Source from the content-addressed store, hash-verified

541 let p = &s[byte_range.start..];
542
543 fn slice<const N: usize>(p: &[u8]) -> Option<[u8; N]> {
544 p.first_chunk().copied()
545 }
546
547 let c = match standard_encoding {
548 StandardEncoding::Utf8 => {

Callers 9

iomdParserFunction · 0.45
readPromptsFunction · 0.45
py_to_jsFunction · 0.45
unparse_formattedMethod · 0.45
compile_string_valueMethod · 0.45
compile_tstring_intoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected