Enum cton_reader::IsaSpec
[−]
[src]
pub enum IsaSpec { None(Flags), Some(Vec<Box<TargetIsa>>), }
The ISA specifications in a .cton
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<TargetIsa>>)
The parsed file does contains isa
commands.
Each isa
command is used to configure a TargetIsa
trait object.
Methods
impl IsaSpec
[src]
pub fn unique_isa(&self) -> Option<&TargetIsa>
[src]
If the IsaSpec
contains exactly 1 TargetIsa
we return a reference to it