pub struct DFWasmCompiler<'a> {
pub wasm: &'a [u8],
pub options: DFWasmCompilerOptions,
/* private fields */
}Expand description
The WASM to DiamondFire compiler.
Fields§
§wasm: &'a [u8]The binary WASM file to compile
options: DFWasmCompilerOptionsThe options to use when compiling
Implementations§
Source§impl<'a> DFWasmCompiler<'a>
impl<'a> DFWasmCompiler<'a>
Sourcepub fn compile_wasm(
wasm: &'a [u8],
options: DFWasmCompilerOptions,
) -> Result<Vec<Template>, DFWasmError>
pub fn compile_wasm( wasm: &'a [u8], options: DFWasmCompilerOptions, ) -> Result<Vec<Template>, DFWasmError>
Compiles a WASM file into DiamondFire templates.
Auto Trait Implementations§
impl<'a> Freeze for DFWasmCompiler<'a>
impl<'a> RefUnwindSafe for DFWasmCompiler<'a>
impl<'a> !Send for DFWasmCompiler<'a>
impl<'a> !Sync for DFWasmCompiler<'a>
impl<'a> Unpin for DFWasmCompiler<'a>
impl<'a> UnwindSafe for DFWasmCompiler<'a>
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