pub struct PostProcessData {
pub wasm_path: PathBuf,
pub wasm: Vec<u8>,
pub imports: String,
pub included: String,
}
Expand description
Generated from postprocess_crate
.
Fields§
§wasm_path: PathBuf
The path to the generated wasm binary.
wasm: Vec<u8>
The contents of the wasm binary, provided for convenience.
imports: String
The javascript that should be put as the value of the env
field in the importObject
passed to WebAssembly.instantiate
.
included: String
All javascript specified by the include_js
macro in linked crates. This should be run
before the WebAssembly module is loaded.
Auto Trait Implementations§
impl Freeze for PostProcessData
impl RefUnwindSafe for PostProcessData
impl Send for PostProcessData
impl Sync for PostProcessData
impl Unpin for PostProcessData
impl UnwindSafe for PostProcessData
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