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
Auto Trait Implementations§
impl RefUnwindSafe for WriterOptions
impl Send for WriterOptions
impl Sync for WriterOptions
impl Unpin for WriterOptions
impl UnwindSafe for WriterOptions
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