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

Method reset_size

regex/src/dfa.rs:451–455  ·  view source on GitHub ↗

Resets the cache size to account for fixed costs, such as the program and stack sizes.

(&mut self)

Source from the content-addressed store, hash-verified

449 /// Resets the cache size to account for fixed costs, such as the program
450 /// and stack sizes.
451 fn reset_size(&mut self) {
452 self.size =
453 (self.start_states.len() * mem::size_of::<StatePtr>())
454 + (self.stack.len() * mem::size_of::<InstPtr>());
455 }
456}
457
458impl<'a> Fsm<'a> {

Callers 2

newMethod · 0.80
clear_cacheMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected