Struct cranelift_codegen::settings::FlagsOrIsa [−][src]
Expand description
Wrapper containing flags and optionally a TargetIsa
trait object.
A few passes need to access the flags but only optionally a target ISA. The FlagsOrIsa
wrapper can be used to pass either, and extract the flags so they are always accessible.
Fields
flags: &'a Flags
Flags are always present.
isa: Option<&'a dyn TargetIsa>
The ISA may not be present.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FlagsOrIsa<'a>
impl<'a> Send for FlagsOrIsa<'a>
impl<'a> Sync for FlagsOrIsa<'a>
impl<'a> Unpin for FlagsOrIsa<'a>
impl<'a> !UnwindSafe for FlagsOrIsa<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more