pub(crate) struct Definitions {
    pub settings: SettingGroup,
    pub all_instructions: Vec<Rc<InstructionContent>>,
}

Fields§

§settings: SettingGroup§all_instructions: Vec<Rc<InstructionContent>>

Implementations§

Verifies certain properties of formats.

  • Formats must be uniquely named: if two formats have the same name, they must refer to the same data. Otherwise, two format variants in the codegen crate would have the same name.
  • Formats must be structurally different from each other. Otherwise, this would lead to code duplicate in the codegen crate.

Returns a list of all the instruction formats effectively used.

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.