Enum wasmer::CraneliftOptLevel [−][src]
#[non_exhaustive] pub enum CraneliftOptLevel { 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
Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for CraneliftOptLevel
impl Send for CraneliftOptLevel
impl Sync for CraneliftOptLevel
impl Unpin for CraneliftOptLevel
impl UnwindSafe for CraneliftOptLevel
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more