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

Function extract_flags

crates/stdlib/src/re.rs:298–300  ·  view source on GitHub ↗
(flags: OptionalArg<usize>)

Source from the content-addressed store, hash-verified

296 }
297
298 fn extract_flags(flags: OptionalArg<usize>) -> PyRegexFlags {
299 flags.map_or_else(Default::default, PyRegexFlags::from_int)
300 }
301
302 #[pyfunction]
303 fn compile(

Callers 6

match_Function · 0.85
searchFunction · 0.85
subFunction · 0.85
findallFunction · 0.85
splitFunction · 0.85
compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected