Struct regex_automata::meta::wrappers::BoundedBacktrackerEngine
source · pub(crate) struct BoundedBacktrackerEngine(BoundedBacktracker);
Tuple Fields§
§0: BoundedBacktracker
Implementations§
source§impl BoundedBacktrackerEngine
impl BoundedBacktrackerEngine
pub(crate) fn new( info: &RegexInfo, pre: Option<Prefilter>, nfa: &NFA, ) -> Result<Option<BoundedBacktrackerEngine>, BuildError>
pub(crate) fn is_match( &self, cache: &mut BoundedBacktrackerCache, input: &Input<'_>, ) -> bool
pub(crate) fn search_slots( &self, cache: &mut BoundedBacktrackerCache, input: &Input<'_>, slots: &mut [Option<NonMaxUsize>], ) -> Option<PatternID>
fn max_haystack_len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoundedBacktrackerEngine
impl RefUnwindSafe for BoundedBacktrackerEngine
impl Send for BoundedBacktrackerEngine
impl Sync for BoundedBacktrackerEngine
impl Unpin for BoundedBacktrackerEngine
impl UnwindSafe for BoundedBacktrackerEngine
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more