pub enum RynaExpr {
Show 38 variants
QualifiedName(Location, String, Option<usize>),
Variable(Location, usize, String, Type, bool),
CompiledVariableDefinition(Location, usize, String, Type, Box<RynaExpr>, bool),
CompiledVariableAssignment(Location, usize, String, Type, Box<RynaExpr>, bool),
FunctionCall(Location, usize, Vec<Type>, Vec<RynaExpr>),
CompiledFor(Location, usize, usize, String, Box<RynaExpr>, Vec<RynaExpr>),
DoBlock(Location, Vec<RynaExpr>, Type),
AttributeAccess(Location, Box<RynaExpr>, usize),
AttributeAssignment(Location, Box<RynaExpr>, Box<RynaExpr>, usize),
Break(Location),
Continue(Location),
CompiledLambda(Location, usize, Vec<(String, RynaExpr)>, Vec<(String, Type)>, Type, Vec<RynaExpr>),
Macro(Location, Vec<Annotation>, String, RynaMacroType, Pattern, RdlMacro),
Literal(Location, Object),
Tuple(Location, Vec<RynaExpr>),
Lambda(Location, Vec<String>, Vec<(String, Type)>, Type, Vec<RynaExpr>),
NameReference(Location, String),
UnaryOperation(Location, usize, Vec<Type>, Box<RynaExpr>),
BinaryOperation(Location, usize, Vec<Type>, Box<RynaExpr>, Box<RynaExpr>),
NaryOperation(Location, usize, Vec<Type>, Box<RynaExpr>, Vec<RynaExpr>),
VariableDefinition(Location, String, Type, Box<RynaExpr>),
VariableAssignment(Location, String, Box<RynaExpr>),
FunctionDefinition(Location, Vec<Annotation>, usize, Vec<String>, Vec<(String, Type)>, Type, Vec<RynaExpr>),
PrefixOperatorDefinition(Location, String, usize),
PostfixOperatorDefinition(Location, String, usize),
BinaryOperatorDefinition(Location, String, bool, usize),
NaryOperatorDefinition(Location, String, String, usize),
ClassDefinition(Location, Vec<Annotation>, String, Vec<String>, Vec<(String, Type)>, Option<Type>, Vec<Pattern>),
InterfaceDefinition(Location, Vec<Annotation>, String, Vec<String>, Vec<(Vec<Annotation>, String, Option<Vec<String>>, Vec<(String, Type)>, Type)>, Vec<(Vec<Annotation>, usize, Vec<String>, String, Type, Type)>, Vec<(Vec<Annotation>, usize, Vec<String>, (String, Type), (String, Type), Type)>, Vec<(Vec<Annotation>, usize, Vec<String>, (String, Type), Vec<(String, Type)>, Type)>),
InterfaceImplementation(Location, Vec<String>, Type, String, Vec<Type>),
PrefixOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, String, Type, Type, Vec<RynaExpr>),
PostfixOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, String, Type, Type, Vec<RynaExpr>),
BinaryOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, (String, Type), (String, Type), Type, Vec<RynaExpr>),
NaryOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, (String, Type), Vec<(String, Type)>, Type, Vec<RynaExpr>),
If(Location, Box<RynaExpr>, Vec<RynaExpr>, Vec<(RynaExpr, Vec<RynaExpr>)>, Option<Vec<RynaExpr>>),
While(Location, Box<RynaExpr>, Vec<RynaExpr>),
For(Location, String, Box<RynaExpr>, Vec<RynaExpr>),
Return(Location, Box<RynaExpr>),
}Variants§
QualifiedName(Location, String, Option<usize>)
Variable(Location, usize, String, Type, bool)
CompiledVariableDefinition(Location, usize, String, Type, Box<RynaExpr>, bool)
CompiledVariableAssignment(Location, usize, String, Type, Box<RynaExpr>, bool)
FunctionCall(Location, usize, Vec<Type>, Vec<RynaExpr>)
CompiledFor(Location, usize, usize, String, Box<RynaExpr>, Vec<RynaExpr>)
DoBlock(Location, Vec<RynaExpr>, Type)
AttributeAccess(Location, Box<RynaExpr>, usize)
AttributeAssignment(Location, Box<RynaExpr>, Box<RynaExpr>, usize)
Break(Location)
Continue(Location)
CompiledLambda(Location, usize, Vec<(String, RynaExpr)>, Vec<(String, Type)>, Type, Vec<RynaExpr>)
Macro(Location, Vec<Annotation>, String, RynaMacroType, Pattern, RdlMacro)
Literal(Location, Object)
Tuple(Location, Vec<RynaExpr>)
Lambda(Location, Vec<String>, Vec<(String, Type)>, Type, Vec<RynaExpr>)
NameReference(Location, String)
UnaryOperation(Location, usize, Vec<Type>, Box<RynaExpr>)
BinaryOperation(Location, usize, Vec<Type>, Box<RynaExpr>, Box<RynaExpr>)
NaryOperation(Location, usize, Vec<Type>, Box<RynaExpr>, Vec<RynaExpr>)
VariableDefinition(Location, String, Type, Box<RynaExpr>)
VariableAssignment(Location, String, Box<RynaExpr>)
FunctionDefinition(Location, Vec<Annotation>, usize, Vec<String>, Vec<(String, Type)>, Type, Vec<RynaExpr>)
PrefixOperatorDefinition(Location, String, usize)
PostfixOperatorDefinition(Location, String, usize)
BinaryOperatorDefinition(Location, String, bool, usize)
NaryOperatorDefinition(Location, String, String, usize)
ClassDefinition(Location, Vec<Annotation>, String, Vec<String>, Vec<(String, Type)>, Option<Type>, Vec<Pattern>)
InterfaceDefinition(Location, Vec<Annotation>, String, Vec<String>, Vec<(Vec<Annotation>, String, Option<Vec<String>>, Vec<(String, Type)>, Type)>, Vec<(Vec<Annotation>, usize, Vec<String>, String, Type, Type)>, Vec<(Vec<Annotation>, usize, Vec<String>, (String, Type), (String, Type), Type)>, Vec<(Vec<Annotation>, usize, Vec<String>, (String, Type), Vec<(String, Type)>, Type)>)
InterfaceImplementation(Location, Vec<String>, Type, String, Vec<Type>)
PrefixOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, String, Type, Type, Vec<RynaExpr>)
PostfixOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, String, Type, Type, Vec<RynaExpr>)
BinaryOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, (String, Type), (String, Type), Type, Vec<RynaExpr>)
NaryOperationDefinition(Location, Vec<Annotation>, usize, Vec<String>, (String, Type), Vec<(String, Type)>, Type, Vec<RynaExpr>)
If(Location, Box<RynaExpr>, Vec<RynaExpr>, Vec<(RynaExpr, Vec<RynaExpr>)>, Option<Vec<RynaExpr>>)
While(Location, Box<RynaExpr>, Vec<RynaExpr>)
For(Location, String, Box<RynaExpr>, Vec<RynaExpr>)
Return(Location, Box<RynaExpr>)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RynaExpr
impl<'de> Deserialize<'de> for RynaExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RynaExpr
impl StructuralPartialEq for RynaExpr
Auto Trait Implementations§
impl Freeze for RynaExpr
impl !RefUnwindSafe for RynaExpr
impl !Send for RynaExpr
impl !Sync for RynaExpr
impl Unpin for RynaExpr
impl !UnwindSafe for RynaExpr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.