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

Method at_beginning

crates/sre_engine/src/engine.rs:1118–1121  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1116 }
1117
1118 const fn at_beginning(&self) -> bool {
1119 // self.ctx().string_position == self.state().start
1120 self.cursor.position == 0
1121 }
1122
1123 const fn at_end<S>(&self, req: &Request<'_, S>) -> bool {
1124 self.cursor.position == req.end

Callers 3

at_boundaryMethod · 0.80
at_non_boundaryMethod · 0.80
atFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected