[][src]Struct xio_instructionset::Instruction

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]

pub fn category(&self) -> InstructionCategory[src]

Get the category of an instruction.

Trait Implementations

impl Clone for Instruction[src]

impl PartialEq<Instruction> for Instruction[src]

impl Debug for Instruction[src]

impl Serialize for Instruction[src]

impl<'de> Deserialize<'de> for Instruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> PathLoad for T where
    T: DeserializeOwned
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err