Enum wasmtime::OptLevel [−][src]
#[non_exhaustive] pub enum OptLevel { None, Speed, SpeedAndSize, }
Expand description
Possible optimization levels for the Cranelift codegen backend.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
No optimizations performed, minimizes compilation time by disabling most optimizations.
Generates the fastest possible code, but may take longer.
Similar to speed
, but also performs transformations aimed at reducing
code size.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for OptLevel
impl UnwindSafe for OptLevel
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V