Enum cranelift_reader::IsaSpec
source · [−]Expand description
The ISA specifications in a .clif
file.
Variants
None(Flags)
The parsed file does not contain any isa
commands, but it may contain set
commands
which are reflected in the finished Flags
object.
Some(Vec<Box<dyn TargetIsa>>)
The parsed file does contain isa
commands.
Each isa
command is used to configure a TargetIsa
trait object.
Implementations
sourceimpl IsaSpec
impl IsaSpec
sourcepub fn unique_isa(&self) -> Option<&dyn TargetIsa>
pub fn unique_isa(&self) -> Option<&dyn TargetIsa>
If the IsaSpec
contains exactly 1 TargetIsa
we return a reference to it
Auto Trait Implementations
impl !RefUnwindSafe for IsaSpec
impl Send for IsaSpec
impl Sync for IsaSpec
impl Unpin for IsaSpec
impl !UnwindSafe for IsaSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more