#[repr(C)]
pub enum OptimizationLevel {
    O0,
    O1,
    O2,
    O3,
    Os,
    Oz,
}
Expand description

Enum for the LLVM-provided high-level optimization levels.

Each level has a specific goal and rationale.

Variants§

§

O0

This level disables as many optimizations as possible.

§

O1

This level optimizes quickly without destroying debuggability.

§

O2

This level optimizes for fast execution as much as possible without triggering significant incremental compile time or code size growth.

§

O3

This level optimizes for fast execution as much as possible.

§

Os

This level is similar to O2 but tries to optimize for small code size instead of fast execution without triggering significant incremental execution time slowdowns.

§

Oz

This level will optimize for code size at any and all costs.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

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.