[−][src]Struct wasmonkey::Patcher
Fields
config: PatcherConfig
Implementations
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]
config: PatcherConfig,
path_in: P
) -> Result<Self, WError>
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]
&self,
module: &str
) -> Result<HashMap<String, String>, WError>
pub fn patched_module(self) -> Module
[src]
Auto Trait Implementations
impl RefUnwindSafe for Patcher
[src]
impl Send for Patcher
[src]
impl Sync for Patcher
[src]
impl Unpin for Patcher
[src]
impl UnwindSafe for Patcher
[src]
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,
pub 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.
pub 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>,