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

Method can_success

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

Source from the content-addressed store, hash-verified

1155 }
1156
1157 const fn can_success<S>(&self, req: &Request<'_, S>) -> bool {
1158 if !self.toplevel {
1159 return true;
1160 }
1161 if req.match_all && !self.at_end(req) {
1162 return false;
1163 }
1164 if req.must_advance && self.cursor.position == req.start {
1165 return false;
1166 }
1167 true
1168 }
1169
1170 #[must_use]
1171 fn next_peek_from<S>(&mut self, peek: usize, req: &Request<'_, S>, jump: Jump) -> Self {

Callers 1

_matchFunction · 0.80

Calls 1

at_endMethod · 0.45

Tested by

no test coverage detected