Struct wasm_gc::Config [−][src]
pub struct Config { /* fields omitted */ }
Methods
impl Config
[src]
impl Config
pub fn new() -> Config
[src]
pub fn new() -> Config
Creates a blank slate of configuration, ready to gc wasm files.
pub fn demangle(&mut self, demangle: bool) -> &mut Self
[src]
pub fn demangle(&mut self, demangle: bool) -> &mut Self
Configures whether or not this will demangle symbols as part of the gc pass.
pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Self
[src]
pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Self
Configures whether or not debug sections will be preserved.
pub fn run<T: Any>(
&mut self,
module: T,
into_bytes: impl FnOnce(T) -> Vec<u8>
) -> Result<GcResult, Error>
[src]
pub fn run<T: Any>(
&mut self,
module: T,
into_bytes: impl FnOnce(T) -> Vec<u8>
) -> Result<GcResult, Error>