[][src]Struct wasm_remapper::RemapperBuilder

pub struct RemapperBuilder<'wasm> { /* fields omitted */ }

Implementations

impl<'wasm> RemapperBuilder<'wasm>[src]

pub fn input(self, input: &'wasm [u8]) -> Self[src]

The binary representation of the wasm that should be remapped.

pub fn reference(self, reference: &'wasm [u8]) -> Self[src]

A wasm binary with debug names included that can be used as a reference.

pub fn ingore_constant_data_section_pointers(self, enabled: bool) -> Self[src]

If constants that appear to be pointers into a wasm's data section should be ignored when comparing if two instructions match. Enabled by default.

pub fn require_exact_function_locals(self, enabled: bool) -> Self[src]

If two functions need to have the exact same locals for them to be considered a potential match. Enabled by default.

pub fn matching_threshold(self, threshold: f32) -> Self[src]

How closely two functions have to match on a scale of 0 to 1 for them to be considered a match good enough to be remapped with.

pub fn build(&self) -> Result<Remapper<'_>, RemapperError>[src]

Trait Implementations

impl<'wasm> Debug for RemapperBuilder<'wasm>[src]

Auto Trait Implementations

impl<'wasm> RefUnwindSafe for RemapperBuilder<'wasm>

impl<'wasm> Send for RemapperBuilder<'wasm>

impl<'wasm> Sync for RemapperBuilder<'wasm>

impl<'wasm> Unpin for RemapperBuilder<'wasm>

impl<'wasm> UnwindSafe for RemapperBuilder<'wasm>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.