Struct regex_automata::meta::strategy::Core
source · struct Core {
info: RegexInfo,
pre: Option<Prefilter>,
nfa: NFA,
nfarev: Option<NFA>,
pikevm: PikeVM,
backtrack: BoundedBacktracker,
onepass: OnePass,
hybrid: Hybrid,
dfa: DFA,
}
Fields§
§info: RegexInfo
§pre: Option<Prefilter>
§nfa: NFA
§nfarev: Option<NFA>
§pikevm: PikeVM
§backtrack: BoundedBacktracker
§onepass: OnePass
§hybrid: Hybrid
§dfa: DFA
Implementations§
source§impl Core
impl Core
fn new( info: RegexInfo, pre: Option<Prefilter>, hirs: &[&Hir], ) -> Result<Core, BuildError>
fn try_search_mayfail( &self, cache: &mut Cache, input: &Input<'_>, ) -> Option<Result<Option<Match>, RetryFailError>>
fn search_nofail(&self, cache: &mut Cache, input: &Input<'_>) -> Option<Match>
fn search_half_nofail( &self, cache: &mut Cache, input: &Input<'_>, ) -> Option<HalfMatch>
fn search_slots_nofail( &self, cache: &mut Cache, input: &Input<'_>, slots: &mut [Option<NonMaxUsize>], ) -> Option<PatternID>
fn is_match_nofail(&self, cache: &mut Cache, input: &Input<'_>) -> bool
fn is_capture_search_needed(&self, slots_len: usize) -> bool
Trait Implementations§
source§impl Strategy for Core
impl Strategy for Core
fn group_info(&self) -> &GroupInfo
fn create_cache(&self) -> Cache
fn reset_cache(&self, cache: &mut Cache)
fn is_accelerated(&self) -> bool
fn memory_usage(&self) -> usize
fn search(&self, cache: &mut Cache, input: &Input<'_>) -> Option<Match>
fn search_half(&self, cache: &mut Cache, input: &Input<'_>) -> Option<HalfMatch>
fn is_match(&self, cache: &mut Cache, input: &Input<'_>) -> bool
fn search_slots( &self, cache: &mut Cache, input: &Input<'_>, slots: &mut [Option<NonMaxUsize>], ) -> Option<PatternID>
fn which_overlapping_matches( &self, cache: &mut Cache, input: &Input<'_>, patset: &mut PatternSet, )
Auto Trait Implementations§
impl Freeze for Core
impl RefUnwindSafe for Core
impl Send for Core
impl Sync for Core
impl Unpin for Core
impl UnwindSafe for Core
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