pub struct InputFunctions {
prepare_input: FunctionIdx,
pub assert_input_args_wf: FunctionIdx,
pub utf8_is_boundary: Option<FunctionIdx>,
pub start_config: FunctionIdx,
}
Expand description
Holds indices to WebAssembly functions related to input processing.
These functions are used by the compiled regex to manage and interpret the input haystack.
Fields§
§prepare_input: FunctionIdx
§assert_input_args_wf: FunctionIdx
§utf8_is_boundary: Option<FunctionIdx>
§start_config: FunctionIdx
Implementations§
Source§impl InputFunctions
impl InputFunctions
Sourcepub fn new(
ctx: &mut CompileContext,
input_layout: &InputLayout,
pattern_lookup_start: FunctionIdx,
) -> Self
pub fn new( ctx: &mut CompileContext, input_layout: &InputLayout, pattern_lookup_start: FunctionIdx, ) -> Self
Creates and registers the necessary WebAssembly functions for input handling.
This includes functions for preparing input memory, asserting argument well-formedness, checking UTF-8 boundaries, and configuring start conditions.
fn start_config_fn( nfa: &NFA, pattern_lookup_start: FunctionIdx, pattern_lookup_start_result_block_sig: TypeIdx, ) -> Function
fn utf8_is_boundary_fn() -> Function
fn assert_input_args_wf_fn( page_size: usize, input_layout: &InputLayout, ) -> Function
fn prepare_input_fn(page_size: usize, input_layout: &InputLayout) -> Function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputFunctions
impl RefUnwindSafe for InputFunctions
impl Send for InputFunctions
impl Sync for InputFunctions
impl Unpin for InputFunctions
impl UnwindSafe for InputFunctions
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