Struct wasm_opt::WriterOptions
source · pub struct WriterOptions {
pub file_type: FileType,
}Expand description
Options for writing the optimized wasm module.
Fields§
§file_type: FileTypeThe module format: wasm, wat, or either.
The default value is FileType::Wasm.
Note that when this is FileType::Any the following logic applies:
If ReaderOptions::file_type is FileType::Wat,
write a wat file, otherwise write a wasm file.
Trait Implementations§
source§impl Clone for WriterOptions
impl Clone for WriterOptions
source§fn clone(&self) -> WriterOptions
fn clone(&self) -> WriterOptions
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 WriterOptions
impl Debug for WriterOptions
source§impl Default for WriterOptions
impl Default for WriterOptions
source§fn default() -> WriterOptions
fn default() -> WriterOptions
Returns the “default value” for a type. Read more