Struct cranelift_codegen::settings::FlagsOrIsa [−][src]
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
impl<'a> Clone for FlagsOrIsa<'a>
[src]
impl<'a> Clone for FlagsOrIsa<'a>
[src]fn clone(&self) -> FlagsOrIsa<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> From<&'a (dyn TargetIsa + 'a)> for FlagsOrIsa<'a>
[src]
impl<'a> From<&'a (dyn TargetIsa + 'a)> for FlagsOrIsa<'a>
[src]fn from(isa: &'a dyn TargetIsa) -> FlagsOrIsa<'_>
[src]
impl<'a> From<&'a Flags> for FlagsOrIsa<'a>
[src]
impl<'a> From<&'a Flags> for FlagsOrIsa<'a>
[src]