MCPcopy Create free account
hub / github.com/davidblewett/rure-python / searcher

Method searcher

regex/src/exec.rs:1134–1142  ·  view source on GitHub ↗

reduces constant overhead

(&self)

Source from the content-addressed store, hash-verified

1132 /// Get a searcher that isn't Sync.
1133 #[inline(always)] // reduces constant overhead
1134 pub fn searcher(&self) -> ExecNoSync {
1135 let create = || {
1136 Box::new(RefCell::new(ProgramCacheInner::new(&self.ro)))
1137 };
1138 ExecNoSync {
1139 ro: &self.ro, // a clone is too expensive here! (and not needed)
1140 cache: self.cache.get_or(create),
1141 }
1142 }
1143
1144 /// Get a searcher that isn't Sync and can match on &str.
1145 #[inline(always)] // reduces constant overhead

Callers 8

searcher_strMethod · 0.80
find_iterMethod · 0.80
captures_iterMethod · 0.80
shortest_match_atMethod · 0.80
find_atMethod · 0.80
captures_read_atMethod · 0.80
capture_locationsMethod · 0.80
locationsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected