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

Method peek_code

crates/sre_engine/src/engine.rs:1099–1101  ·  view source on GitHub ↗
(&self, req: &Request<'_, S>, peek: usize)

Source from the content-addressed store, hash-verified

1097 }
1098
1099 fn peek_code<S>(&self, req: &Request<'_, S>, peek: usize) -> u32 {
1100 req.pattern_codes[self.code_position + peek]
1101 }
1102
1103 fn try_peek_code_as<T, S>(&self, req: &Request<'_, S>, peek: usize) -> Result<T, T::Error>
1104 where

Callers 8

searchMethod · 0.80
_matchFunction · 0.80
search_info_literalFunction · 0.80
try_peek_code_asMethod · 0.80
skip_code_fromMethod · 0.80
next_peek_fromMethod · 0.80
_countFunction · 0.80
general_count_literalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected