pub struct EmitOptions {
pub assert_no_leaks_at_run_main: bool,
pub function_lines: BTreeMap<String, usize>,
}Expand description
Configuration switches for direct WASM code generation.
Fields§
§assert_no_leaks_at_run_main: boolEmit run_main with a runtime leak assertion call after main.
Defaults to true.
function_lines: BTreeMap<String, usize>Best-effort map of source function names to 1-based declaration lines.
Trait Implementations§
Source§impl Clone for EmitOptions
impl Clone for EmitOptions
Source§fn clone(&self) -> EmitOptions
fn clone(&self) -> EmitOptions
Returns a copy of the value. Read more
1.0.0 · 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 EmitOptions
impl Debug for EmitOptions
Auto Trait Implementations§
impl Freeze for EmitOptions
impl RefUnwindSafe for EmitOptions
impl Send for EmitOptions
impl Sync for EmitOptions
impl Unpin for EmitOptions
impl UnwindSafe for EmitOptions
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