[][src]Struct wasmonkey::Patcher

pub struct Patcher {
    pub config: PatcherConfig,
    // some fields omitted
}

Fields

config: PatcherConfig

Methods

impl Patcher[src]

pub fn new(config: PatcherConfig, module: Module) -> Result<Self, WError>[src]

pub fn from_bytes(config: PatcherConfig, bytes: &[u8]) -> Result<Self, WError>[src]

pub fn from_file<P: AsRef<Path>>(
    config: PatcherConfig,
    path_in: P
) -> Result<Self, WError>
[src]

pub fn into_bytes(self) -> Result<Vec<u8>, WError>[src]

pub fn store_to_file<P: AsRef<Path>>(self, path_out: P) -> Result<(), WError>[src]

pub fn patched_builtins_map(
    &self,
    module: &str
) -> Result<HashMap<String, String>, WError>
[src]

pub fn patched_module(self) -> Module[src]

Auto Trait Implementations

impl RefUnwindSafe for Patcher

impl Send for Patcher

impl Sync for Patcher

impl Unpin for Patcher

impl UnwindSafe for Patcher

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.