[−][src]Struct wasm_remapper::RemapperBuilder
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,