pub enum Expression {
Show 24 variants
Bool(bool),
Int(i64),
Real(Fraction),
PrefixUnary(PrefixUnaryOperator, Box<Expr>),
Binary(Box<Expr>, BinaryOperator, Box<Expr>),
Nary(NaryOperator, Vec<Expr>),
EnumerateElement(EnumerateElementId),
Declaration(DeclarationId),
Definition(DefinitionId),
FunDec(FunDecId),
FunDef(FunDefId),
LtlDefinition(LtlDefinitionId),
Parameter(Parameter),
Apply(Box<Expr>, Vec<Expr>),
As(Box<Expr>, Type, Box<Expr>),
Following(Box<Expr>),
State(Box<Expr>, StateIndex, Option<Box<Expr>>),
Scope(Vec<Expr>, Box<Expr>),
IfThenElse(Box<Expr>, Box<Expr>, Vec<(Expr, Expr)>, Box<Expr>),
Quantifier(QtOperator, Vec<Parameter>, Box<Expr>),
LTLunary(LTLUnaryOperator, Box<Expr>),
LTLbinary(Box<Expr>, LTLBinaryOperator, Box<Expr>),
LTLVariable(LTLVariableId),
Unresolved(String),
}Variants§
Bool(bool)
Int(i64)
Real(Fraction)
PrefixUnary(PrefixUnaryOperator, Box<Expr>)
Binary(Box<Expr>, BinaryOperator, Box<Expr>)
Nary(NaryOperator, Vec<Expr>)
EnumerateElement(EnumerateElementId)
Declaration(DeclarationId)
Definition(DefinitionId)
FunDec(FunDecId)
FunDef(FunDefId)
LtlDefinition(LtlDefinitionId)
Parameter(Parameter)
Apply(Box<Expr>, Vec<Expr>)
As(Box<Expr>, Type, Box<Expr>)
Following(Box<Expr>)
State(Box<Expr>, StateIndex, Option<Box<Expr>>)
Scope(Vec<Expr>, Box<Expr>)
IfThenElse(Box<Expr>, Box<Expr>, Vec<(Expr, Expr)>, Box<Expr>)
Quantifier(QtOperator, Vec<Parameter>, Box<Expr>)
LTLunary(LTLUnaryOperator, Box<Expr>)
LTLbinary(Box<Expr>, LTLBinaryOperator, Box<Expr>)
LTLVariable(LTLVariableId)
Unresolved(String)
Implementations§
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Expression
impl Debug for Expression
Source§impl From<Expression> for Expr
impl From<Expression> for Expr
Source§fn from(value: Expression) -> Self
fn from(value: Expression) -> Self
Converts to this type from the input type.
Source§impl Into<Expression> for &Entry
impl Into<Expression> for &Entry
Source§fn into(self) -> Expression
fn into(self) -> Expression
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more