Struct wasmonkey::Patcher
[−]
[src]
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]
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 builtins_map(
&self,
module: &str
) -> Result<HashMap<String, String>, WError>
[src]
&self,
module: &str
) -> Result<HashMap<String, String>, WError>