pub enum AstNode {
Show 95 variants
Root {
children: Vec<AstNode>,
},
Fragment {
children: Vec<AstNode>,
},
Head {
children: Vec<AstNode>,
},
Body {
children: Vec<AstNode>,
},
Block {
children: Vec<AstNode>,
src_range: SourceRange,
},
Statement {
children: Vec<AstNode>,
src_range: SourceRange,
},
Expression {
children: Vec<AstNode>,
},
MathExpression {
children: Vec<AstNode>,
},
SelectExpression {
children: Vec<AstNode>,
},
Data {
children: Vec<AstNode>,
},
Whenever {
children: Vec<AstNode>,
},
Wait {
children: Vec<AstNode>,
},
Until {
children: Vec<AstNode>,
},
SetData {
children: Vec<AstNode>,
},
SplitData {
children: Vec<AstNode>,
},
FlattenData {
children: Vec<AstNode>,
},
Binding {
children: Vec<AstNode>,
},
FunctionBinding {
children: Vec<AstNode>,
},
UserFunction {
children: Vec<AstNode>,
},
FunctionBody {
children: Vec<AstNode>,
},
FunctionArgs {
children: Vec<AstNode>,
},
FunctionInput {
children: Vec<AstNode>,
},
FunctionOutput {
children: Vec<AstNode>,
},
DotIndex {
children: Vec<AstNode>,
},
Swizzle {
children: Vec<AstNode>,
},
SubscriptIndex {
children: Vec<AstNode>,
},
Range,
VariableDefine {
children: Vec<AstNode>,
},
TableDefine {
children: Vec<AstNode>,
},
FollowedBy {
children: Vec<AstNode>,
},
TableSelect {
children: Vec<AstNode>,
},
EmptyTable {
children: Vec<AstNode>,
},
InlineTable {
children: Vec<AstNode>,
},
TableHeader {
children: Vec<AstNode>,
},
Attribute {
children: Vec<AstNode>,
},
TableRow {
children: Vec<AstNode>,
},
Comment {
children: Vec<AstNode>,
},
KindAnnotation {
children: Vec<AstNode>,
},
AddRow {
children: Vec<AstNode>,
},
Transformation {
children: Vec<AstNode>,
},
Quantity {
children: Vec<AstNode>,
},
Token {
token: Token,
chars: Vec<char>,
src_range: SourceRange,
},
Add,
Subtract,
Multiply,
MatrixMultiply,
Divide,
Exponent,
LessThan,
GreaterThan,
GreaterThanEqual,
LessThanEqual,
Equal,
NotEqual,
And,
Or,
Xor,
AddUpdate,
SubtractUpdate,
MultiplyUpdate,
DivideUpdate,
ExponentUpdate,
SelectAll,
Empty,
True,
False,
ReshapeColumn,
RationalNumber {
children: Vec<AstNode>,
},
Paragraph {
children: Vec<AstNode>,
},
UnorderedList {
children: Vec<AstNode>,
},
ListItem {
children: Vec<AstNode>,
},
InlineCode {
children: Vec<AstNode>,
},
CodeBlock {
children: Vec<AstNode>,
},
InlineMechCode {
children: Vec<AstNode>,
},
MechCodeBlock {
children: Vec<AstNode>,
},
Null,
Transpose,
Program {
title: Option<Vec<char>>,
children: Vec<AstNode>,
},
Section {
title: Option<Vec<char>>,
children: Vec<AstNode>,
},
WheneverIndex {
children: Vec<AstNode>,
},
SelectData {
name: Vec<char>,
id: TableId,
children: Vec<AstNode>,
src_range: SourceRange,
},
UpdateData {
name: Vec<char>,
children: Vec<AstNode>,
src_range: SourceRange,
},
TableColumn {
children: Vec<AstNode>,
},
Function {
name: Vec<char>,
children: Vec<AstNode>,
src_range: SourceRange,
},
Define {
name: Vec<char>,
id: u64,
src_range: SourceRange,
},
AnonymousTableDefine {
children: Vec<AstNode>,
},
AnonymousMatrixDefine {
children: Vec<AstNode>,
},
Identifier {
name: Vec<char>,
id: u64,
src_range: SourceRange,
},
Table {
name: Vec<char>,
id: u64,
src_range: SourceRange,
},
String {
text: Vec<char>,
src_range: SourceRange,
},
NumberLiteral {
kind: u64,
bytes: Vec<char>,
src_range: SourceRange,
},
SectionTitle {
text: Vec<char>,
src_range: SourceRange,
},
Title {
text: Vec<char>,
src_range: SourceRange,
},
ParagraphText {
text: Vec<char>,
src_range: SourceRange,
},
TransposeSelect {
children: Vec<AstNode>,
},
}Variants§
Root
Fragment
Head
Body
Block
Statement
Expression
MathExpression
SelectExpression
Data
Whenever
Wait
Until
SetData
SplitData
FlattenData
Binding
FunctionBinding
UserFunction
FunctionBody
FunctionArgs
FunctionInput
FunctionOutput
DotIndex
Swizzle
SubscriptIndex
Range
VariableDefine
TableDefine
FollowedBy
TableSelect
EmptyTable
InlineTable
TableHeader
Attribute
TableRow
Comment
KindAnnotation
AddRow
Transformation
Quantity
Token
Add
Subtract
Multiply
MatrixMultiply
Divide
Exponent
LessThan
GreaterThan
GreaterThanEqual
LessThanEqual
Equal
NotEqual
And
Or
Xor
AddUpdate
SubtractUpdate
MultiplyUpdate
DivideUpdate
ExponentUpdate
SelectAll
Empty
True
False
ReshapeColumn
RationalNumber
Paragraph
UnorderedList
ListItem
InlineCode
CodeBlock
InlineMechCode
MechCodeBlock
Null
Transpose
Program
Section
WheneverIndex
SelectData
UpdateData
TableColumn
Function
Define
AnonymousTableDefine
AnonymousMatrixDefine
Identifier
Table
String
NumberLiteral
SectionTitle
Title
ParagraphText
TransposeSelect
Trait Implementations§
source§impl<'de> Deserialize<'de> for AstNode
impl<'de> Deserialize<'de> for AstNode
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
source§impl PartialEq<AstNode> for AstNode
impl PartialEq<AstNode> for AstNode
impl Eq for AstNode
impl StructuralEq for AstNode
impl StructuralPartialEq for AstNode
Auto Trait Implementations§
impl RefUnwindSafe for AstNode
impl Send for AstNode
impl Sync for AstNode
impl Unpin for AstNode
impl UnwindSafe for AstNode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.