Struct xio_instructionset::Instruction [−][src]
pub struct Instruction { pub code: u16, pub description: String, pub formatstring: String, pub parameters: Vec<InstructionParameter>, }
Description of an instruction type.
Fields
code: u16
The instruction code.
description: String
The description of the instruction.
formatstring: String
The format string in Qt format syntax.
The Qt string formatting replaces %1, %2, …, %99 in the provided order. See http://doc.qt.io/qt-5/qstring.html#arg
parameters: Vec<InstructionParameter>
The parameters which are required for the instruction.
Methods
impl Instruction
[src]
impl Instruction
pub fn category(&self) -> InstructionCategory
[src]
pub fn category(&self) -> InstructionCategory
Get the category of an instruction.
Trait Implementations
impl Clone for Instruction
[src]
impl Clone for Instruction
fn clone(&self) -> Instruction
[src]
fn clone(&self) -> Instruction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Instruction
[src]
impl Debug for Instruction
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Instruction
[src]
impl PartialEq for Instruction
fn eq(&self, other: &Instruction) -> bool
[src]
fn eq(&self, other: &Instruction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Instruction) -> bool
[src]
fn ne(&self, other: &Instruction) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Sync for Instruction