pub enum TokenType<S> {
Show 32 variants
OpenParen(Paren, Option<ParenMod>),
CloseParen(Paren),
QuoteTick,
QuasiQuote,
Unquote,
UnquoteSplice,
QuoteSyntax,
QuasiQuoteSyntax,
UnquoteSyntax,
UnquoteSpliceSyntax,
If,
Define,
Let,
TestLet,
Return,
Begin,
Lambda,
Quote,
SyntaxRules,
DefineSyntax,
Ellipses,
Set,
Require,
CharacterLiteral(char),
DatumComment,
Comment,
BooleanLiteral(bool),
Identifier(S),
Keyword(S),
Number(InternedNumber),
StringLiteral(InternedString),
Dot,
}Variants§
OpenParen(Paren, Option<ParenMod>)
CloseParen(Paren)
QuoteTick
QuasiQuote
Unquote
UnquoteSplice
QuoteSyntax
QuasiQuoteSyntax
UnquoteSyntax
UnquoteSpliceSyntax
If
Define
Let
TestLet
Return
Begin
Lambda
Quote
SyntaxRules
DefineSyntax
Ellipses
Set
Require
CharacterLiteral(char)
DatumComment
Comment
BooleanLiteral(bool)
Identifier(S)
Keyword(S)
Number(InternedNumber)
StringLiteral(InternedString)
Dot
Implementations§
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for TokenType<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for TokenType<S>where
S: Deserialize<'de>,
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<S> From<IntLiteral> for TokenType<S>
impl<S> From<IntLiteral> for TokenType<S>
Source§fn from(value: IntLiteral) -> Self
fn from(value: IntLiteral) -> Self
Converts to this type from the input type.
Source§impl<S> From<NumberLiteral> for TokenType<S>
impl<S> From<NumberLiteral> for TokenType<S>
Source§fn from(n: NumberLiteral) -> Self
fn from(n: NumberLiteral) -> Self
Converts to this type from the input type.
Source§impl<S> From<RealLiteral> for TokenType<S>
impl<S> From<RealLiteral> for TokenType<S>
Source§fn from(value: RealLiteral) -> Self
fn from(value: RealLiteral) -> Self
Converts to this type from the input type.
impl<S> StructuralPartialEq for TokenType<S>
Auto Trait Implementations§
impl<S> Freeze for TokenType<S>where
S: Freeze,
impl<S> RefUnwindSafe for TokenType<S>where
S: RefUnwindSafe,
impl<S> Send for TokenType<S>where
S: Send,
impl<S> Sync for TokenType<S>where
S: Sync,
impl<S> Unpin for TokenType<S>where
S: Unpin,
impl<S> UnsafeUnpin for TokenType<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for TokenType<S>where
S: UnwindSafe,
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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more