pub struct InputLayout {
pub haystack_start_pos: usize,
_overall: Layout,
}
Expand description
Defines the memory layout for input-related data within the WebAssembly module.
This includes the starting position of the haystack.
Fields§
§haystack_start_pos: usize
§_overall: Layout
Implementations§
Source§impl InputLayout
impl InputLayout
Sourcepub fn new(_ctx: &mut CompileContext) -> Result<Self, LayoutError>
pub fn new(_ctx: &mut CompileContext) -> Result<Self, LayoutError>
Creates a new InputLayout
.
Currently, this primarily determines the starting offset for the haystack.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputLayout
impl RefUnwindSafe for InputLayout
impl Send for InputLayout
impl Sync for InputLayout
impl Unpin for InputLayout
impl UnwindSafe for InputLayout
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