[][src]Enum bve::parse::function_scripts::Instruction

pub enum Instruction {
    Addition,
    Subtraction,
    Multiplication,
    Division,
    LogicalOr,
    LogicalAnd,
    LogicalXor,
    UnaryLogicalNot,
    UnaryNegative,
    Equal,
    NotEqual,
    Less,
    Greater,
    LessEqual,
    GreaterEqual,
    FunctionCall {
        name: String,
        arg_count: usize,
    },
    Variable {
        name: String,
    },
    Number {
        value: f64,
    },
}

Variants

Addition
Subtraction
Multiplication
Division
LogicalOr
LogicalAnd
LogicalXor
UnaryLogicalNot
UnaryNegative
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
FunctionCall

Fields of FunctionCall

name: Stringarg_count: usize
Variable

Fields of Variable

name: String
Number

Fields of Number

value: f64

Trait Implementations

impl Clone for Instruction[src]

impl Debug for Instruction[src]

impl PartialEq<Instruction> for Instruction[src]

impl StructuralPartialEq for Instruction[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AnyEq for T where
    T: PartialEq<T> + Any

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.