pub struct W2C2Transpiler { /* private fields */ }Expand description
w2c2 transpiler wrapper
Implementations§
Source§impl W2C2Transpiler
impl W2C2Transpiler
Sourcepub fn transpile<P: AsRef<Path>>(
&self,
wasm_path: P,
output_path: P,
options: &TranspileOptions,
) -> Result<TranspileResult>
pub fn transpile<P: AsRef<Path>>( &self, wasm_path: P, output_path: P, options: &TranspileOptions, ) -> Result<TranspileResult>
Transpile a WebAssembly module to C
§Arguments
wasm_path- Path to input .wasm fileoutput_path- Path to output .c file (w2c2 will also create a .h file)options- Transpilation options
Auto Trait Implementations§
impl Freeze for W2C2Transpiler
impl RefUnwindSafe for W2C2Transpiler
impl Send for W2C2Transpiler
impl Sync for W2C2Transpiler
impl Unpin for W2C2Transpiler
impl UnsafeUnpin for W2C2Transpiler
impl UnwindSafe for W2C2Transpiler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more