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

Method pattern

crates/sre_engine/src/engine.rs:1063–1065  ·  view source on GitHub ↗
(&self, req: &Request<'a, S>)

Source from the content-addressed store, hash-verified

1061
1062impl MatchContext {
1063 fn pattern<'a, S>(&self, req: &Request<'a, S>) -> &'a [u32] {
1064 &req.pattern_codes[self.code_position..]
1065 }
1066
1067 const fn remaining_codes<S>(&self, req: &Request<'_, S>) -> usize {
1068 req.pattern_codes.len() - self.code_position

Callers 3

search_info_literalFunction · 0.45
search_info_charsetFunction · 0.45
_countFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected