[][src]Enum flatzinc::VarDeclItem

pub enum VarDeclItem {
    Bool {
        id: String,
        expr: Option<BoolExpr>,
        annos: Vec<Annotation>,
    },
    Int {
        id: String,
        expr: Option<IntExpr>,
        annos: Vec<Annotation>,
    },
    Float {
        id: String,
        expr: Option<FloatExpr>,
        annos: Vec<Annotation>,
    },
    IntInRange {
        id: String,
        lb: i128,
        ub: i128,
        int: Option<IntExpr>,
        annos: Vec<Annotation>,
    },
    IntInSet {
        id: String,
        set: Vec<i128>,
        int: Option<IntExpr>,
        annos: Vec<Annotation>,
    },
    FloatInRange {
        id: String,
        lb: f64,
        ub: f64,
        float: Option<FloatExpr>,
        annos: Vec<Annotation>,
    },
    SetOfInt {
        id: String,
        expr: Option<SetExpr>,
        annos: Vec<Annotation>,
    },
    SetOfIntInSet {
        id: String,
        set: Vec<i128>,
        expr: Option<SetExpr>,
        annos: Vec<Annotation>,
    },
    SetOfIntInRange {
        id: String,
        lb: i128,
        ub: i128,
        expr: Option<SetExpr>,
        annos: Vec<Annotation>,
    },
    ArrayOfBool {
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<BoolExpr>,
    },
    ArrayOfInt {
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<IntExpr>,
    },
    ArrayOfIntInRange {
        lb: i128,
        ub: i128,
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<IntExpr>,
    },
    ArrayOfIntInSet {
        set: Vec<i128>,
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<IntExpr>,
    },
    ArrayOfFloat {
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<FloatExpr>,
    },
    ArrayOfFloatInRange {
        lb: f64,
        ub: f64,
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<FloatExpr>,
    },
    ArrayOfSet {
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<SetExpr>,
    },
    ArrayOfSetOfIntInRange {
        ub: i128,
        lb: i128,
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<SetExpr>,
    },
    ArrayOfSetOfIntInSet {
        set: Vec<i128>,
        ix: IndexSet,
        id: String,
        annos: Vec<Annotation>,
        array_literal: Vec<SetExpr>,
    },
}

Variants

Bool

Fields of Bool

id: Stringexpr: Option<BoolExpr>annos: Vec<Annotation>
Int

Fields of Int

id: Stringexpr: Option<IntExpr>annos: Vec<Annotation>
Float

Fields of Float

id: Stringexpr: Option<FloatExpr>annos: Vec<Annotation>
IntInRange

Fields of IntInRange

id: Stringlb: i128ub: i128int: Option<IntExpr>annos: Vec<Annotation>
IntInSet

Fields of IntInSet

id: Stringset: Vec<i128>int: Option<IntExpr>annos: Vec<Annotation>
FloatInRange

Fields of FloatInRange

id: Stringlb: f64ub: f64float: Option<FloatExpr>annos: Vec<Annotation>
SetOfInt

Fields of SetOfInt

id: Stringexpr: Option<SetExpr>annos: Vec<Annotation>
SetOfIntInSet

Fields of SetOfIntInSet

id: Stringset: Vec<i128>expr: Option<SetExpr>annos: Vec<Annotation>
SetOfIntInRange

Fields of SetOfIntInRange

id: Stringlb: i128ub: i128expr: Option<SetExpr>annos: Vec<Annotation>
ArrayOfBool

Fields of ArrayOfBool

ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<BoolExpr>
ArrayOfInt

Fields of ArrayOfInt

ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<IntExpr>
ArrayOfIntInRange

Fields of ArrayOfIntInRange

lb: i128ub: i128ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<IntExpr>
ArrayOfIntInSet

Fields of ArrayOfIntInSet

set: Vec<i128>ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<IntExpr>
ArrayOfFloat

Fields of ArrayOfFloat

ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<FloatExpr>
ArrayOfFloatInRange

Fields of ArrayOfFloatInRange

lb: f64ub: f64ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<FloatExpr>
ArrayOfSet

Fields of ArrayOfSet

ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<SetExpr>
ArrayOfSetOfIntInRange

Fields of ArrayOfSetOfIntInRange

ub: i128lb: i128ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<SetExpr>
ArrayOfSetOfIntInSet

Fields of ArrayOfSetOfIntInSet

set: Vec<i128>ix: IndexSetid: Stringannos: Vec<Annotation>array_literal: Vec<SetExpr>

Trait Implementations

impl Clone for VarDeclItem[src]

impl Debug for VarDeclItem[src]

impl PartialEq<VarDeclItem> for VarDeclItem[src]

impl StructuralPartialEq for VarDeclItem[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.