pub struct DFWasmCompilerOptions {
pub module_name: Option<String>,
pub debugger: bool,
pub skip_nop_debugger: bool,
pub max_template_size: Option<usize>,
pub batch_data_size: Option<usize>,
pub only_include_module_init: bool,
}Expand description
The options for DFWasmCompiler.
Fields§
§module_name: Option<String>The module name. Useful for when compiling multiple modules.
debugger: boolWhether or not to include debugger function calls.
skip_nop_debugger: boolWhether or not to call the debugger on nops.
max_template_size: Option<usize>Whether or not to limit the size of the templates (highly recommended). Use this to set your plot size.
batch_data_size: Option<usize>Configuration for batching data section memory setters. (i.e. combining multiple set vars into one function call).
If Some, enables batching with the specified number of bytes per batch. Default max is 26 bytes, but 8 may be safer for massive plots.
Using None disables batching.
only_include_module_init: boolWhether or not to only include the module init function in the template. Useful for debugging data section initialization.
Trait Implementations§
Source§impl Clone for DFWasmCompilerOptions
impl Clone for DFWasmCompilerOptions
Source§fn clone(&self) -> DFWasmCompilerOptions
fn clone(&self) -> DFWasmCompilerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DFWasmCompilerOptions
impl Debug for DFWasmCompilerOptions
Source§impl Default for DFWasmCompilerOptions
impl Default for DFWasmCompilerOptions
Source§fn default() -> DFWasmCompilerOptions
fn default() -> DFWasmCompilerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DFWasmCompilerOptions
impl RefUnwindSafe for DFWasmCompilerOptions
impl Send for DFWasmCompilerOptions
impl Sync for DFWasmCompilerOptions
impl Unpin for DFWasmCompilerOptions
impl UnsafeUnpin for DFWasmCompilerOptions
impl UnwindSafe for DFWasmCompilerOptions
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