pub enum IsaSpec {
    None(Flags),
    Some(Vec<Box<dyn TargetIsa>>),
}
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

If the IsaSpec contains exactly 1 TargetIsa we return a reference to it

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.