Struct wasm_opt::ReaderOptions
source · [−]pub struct ReaderOptions {
pub file_type: FileType,
}Expand description
Options for reading the unoptimized wasm module.
Fields
file_type: FileTypeThe module format: wasm, wat, or either.
The default value is FileType::Any.
When this is FileType::Any the first bytes
of the module will be inspected to determine whether
the module is in binary or text format,
then read as appropriate.
Trait Implementations
sourceimpl Clone for ReaderOptions
impl Clone for ReaderOptions
sourcefn clone(&self) -> ReaderOptions
fn clone(&self) -> ReaderOptions
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 moresourceimpl Debug for ReaderOptions
impl Debug for ReaderOptions
sourceimpl Default for ReaderOptions
impl Default for ReaderOptions
sourcefn default() -> ReaderOptions
fn default() -> ReaderOptions
Returns the “default value” for a type. Read more
impl Copy for ReaderOptions
Auto Trait Implementations
impl RefUnwindSafe for ReaderOptions
impl Send for ReaderOptions
impl Sync for ReaderOptions
impl Unpin for ReaderOptions
impl UnwindSafe for ReaderOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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