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

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.