pub enum Token {
Show 36 variants
Pipeline,
Version,
Author,
Description,
Input,
Output,
Step,
Flow,
Execute,
Matrix,
Array,
Float32,
Float64,
Int32,
Int64,
Bool,
String,
Identifier(String),
StringLiteral(String),
NumberLiteral(f64),
BooleanLiteral(bool),
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
LeftParen,
RightParen,
LeftAngle,
RightAngle,
Comma,
Colon,
Semicolon,
Dot,
Arrow,
Newline,
Eof,
}Expand description
Token types for the DSL
Variants§
Pipeline
Pipeline
Version
Version
Author
Author
Description
Description
Input
Input
Output
Output
Step
Step
Flow
Flow
Execute
Execute
Matrix
Matrix
Array
Array
Float32
Float32
Float64
Float64
Int32
Int32
Int64
Int64
Bool
Bool
String
String
Identifier(String)
Identifier
StringLiteral(String)
StringLiteral
NumberLiteral(f64)
NumberLiteral
BooleanLiteral(bool)
BooleanLiteral
LeftBrace
LeftBrace
RightBrace
RightBrace
LeftBracket
LeftBracket
RightBracket
RightBracket
LeftParen
LeftParen
RightParen
RightParen
LeftAngle
LeftAngle
RightAngle
RightAngle
Comma
Comma
Colon
Colon
Semicolon
Semicolon
Dot
Dot
Arrow
Arrow
Newline
Newline
Eof
Eof
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more