pub enum TokenKind {
Show 23 variants
NewLine,
Ident(String),
Keyword(String),
Literal(Literal),
Param(String),
Range {
bind_left: bool,
bind_right: bool,
},
Interpolation(char, String),
Control(char),
ArrowThin,
ArrowFat,
Eq,
Ne,
Gte,
Lte,
RegexSearch,
And,
Or,
Coalesce,
DivInt,
Annotate,
Comment(String),
DocComment(String),
LineWrap(Vec<TokenKind>),
}
Variants§
NewLine
Ident(String)
Keyword(String)
Literal(Literal)
Param(String)
Range
Fields
Interpolation(char, String)
Control(char)
single-char control tokens
ArrowThin
ArrowFat
Eq
Ne
Gte
Lte
RegexSearch
And
Or
Coalesce
DivInt
Annotate
Comment(String)
DocComment(String)
LineWrap(Vec<TokenKind>)
Vec containing comments between the newline and the line wrap
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TokenKind
impl<'de> Deserialize<'de> for TokenKind
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 TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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