[][src]Enum nodespeak::vague::structure::VPExpression

pub enum VPExpression {
    Literal(KnownData, FilePosition),
    Variable(VariableId, FilePosition),
    Collect(Vec<VPExpression>, FilePosition),
    BuildArrayType {
        dimensions: Vec<VPExpression>,
        base: Box<VPExpression>,
        position: FilePosition,
    },
    UnaryOperation(UnaryOperatorBox<VPExpression>, FilePosition),
    BinaryOperation(Box<VPExpression>, BinaryOperatorBox<VPExpression>, FilePosition),
    Index {
        base: Box<VPExpression>,
        indexes: Vec<(VPExpression, bool)>,
        position: FilePosition,
    },
    MacroCall {
        mcro: Box<VPExpression>,
        inputs: Vec<VPExpression>,
        outputs: Vec<FuncCallOutput>,
        position: FilePosition,
    },
}

Variants

Literal(KnownData, FilePosition)
Variable(VariableId, FilePosition)
Collect(Vec<VPExpression>, FilePosition)
BuildArrayType

Fields of BuildArrayType

dimensions: Vec<VPExpression>base: Box<VPExpression>position: FilePosition
UnaryOperation(UnaryOperatorBox<VPExpression>, FilePosition)
BinaryOperation(Box<VPExpression>, BinaryOperatorBox<VPExpression>, FilePosition)
Index

Fields of Index

base: Box<VPExpression>indexes: Vec<(VPExpression, bool)>position: FilePosition
MacroCall

Fields of MacroCall

mcro: Box<VPExpression>inputs: Vec<VPExpression>outputs: Vec<FuncCallOutput>position: FilePosition

Implementations

impl VPExpression[src]

pub fn clone_position(&self) -> FilePosition[src]

Trait Implementations

impl Clone for VPExpression[src]

impl Debug for VPExpression[src]

impl PartialEq<VPExpression> for VPExpression[src]

impl StructuralPartialEq for VPExpression[src]

Auto Trait Implementations

Blanket Implementations

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

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.