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
sourceimpl Clone for WriterOptions
impl Clone for WriterOptions
sourcefn clone(&self) -> WriterOptions
fn clone(&self) -> WriterOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WriterOptions
impl Debug for WriterOptions
sourceimpl Default for WriterOptions
impl Default for WriterOptions
sourcefn default() -> WriterOptions
fn default() -> WriterOptions
Returns the “default value” for a type. Read more
impl Copy for WriterOptions
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more