pub struct Options {
    pub validator_options: Option<ValidatorOptions>,
    pub max_id_bound: Option<u32>,
    pub preserve_bindings: bool,
    pub preserve_spec_constants: bool,
}
Expand description

Options for specifying the behavior of the optimizer

Fields

validator_options: Option<ValidatorOptions>

Records the validator options that should be passed to the validator, the validator will run with the options before optimizer.

max_id_bound: Option<u32>

Records the maximum possible value for the id bound.

preserve_bindings: bool

Records whether all bindings within the module should be preserved.

preserve_spec_constants: bool

Records whether all specialization constants within the module should be preserved.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.