Struct wasm_opt::ReaderOptions
source · pub struct ReaderOptions {
pub file_type: FileType,
}
Expand description
Options for reading the unoptimized wasm module.
Fields§
§file_type: FileType
The 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§
source§impl Clone for ReaderOptions
impl Clone for ReaderOptions
source§fn clone(&self) -> ReaderOptions
fn clone(&self) -> ReaderOptions
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 ReaderOptions
impl Debug for ReaderOptions
source§impl Default for ReaderOptions
impl Default for ReaderOptions
source§fn default() -> ReaderOptions
fn default() -> ReaderOptions
Returns the “default value” for a type. Read more
impl Copy for ReaderOptions
Auto Trait Implementations§
impl Freeze for ReaderOptions
impl RefUnwindSafe for ReaderOptions
impl Send for ReaderOptions
impl Sync for ReaderOptions
impl Unpin for ReaderOptions
impl UnwindSafe for ReaderOptions
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