pub enum SchemeElementType {
Show 46 variants
SourceFile,
Whitespace,
Newline,
Comment,
LineComment,
NumberLiteral,
StringLiteral,
CharacterLiteral,
BooleanLiteral,
Identifier,
Symbol,
Keyword,
Define,
Lambda,
If,
Cond,
Case,
Let,
LetStar,
Letrec,
Begin,
Do,
Quote,
Quasiquote,
Unquote,
UnquoteSplicing,
And,
Or,
Not,
Set,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Dot,
Hash,
Quote_,
Quasiquote_,
Unquote_,
UnquoteSplicing_,
List,
Quotation,
Error,
Eof,
}Expand description
Element types for the Scheme language.
Variants§
SourceFile
A source file.
Whitespace
Whitespace.
Newline
A newline.
Comment
A comment.
LineComment
A line comment.
NumberLiteral
A numeric literal.
StringLiteral
A string literal.
CharacterLiteral
A character literal.
BooleanLiteral
A boolean literal.
Identifier
An identifier.
Symbol
A symbol.
Keyword
A keyword.
Define
define keyword.
Lambda
lambda keyword.
If
if keyword.
Cond
cond keyword.
Case
case keyword.
Let
let keyword.
LetStar
let* keyword.
Letrec
letrec keyword.
Begin
begin keyword.
Do
do keyword.
Quote
quote keyword.
Quasiquote
quasiquote keyword.
Unquote
unquote keyword.
UnquoteSplicing
unquote-splicing keyword.
And
and keyword.
Or
or keyword.
Not
not keyword.
Set
set! keyword.
LeftParen
(.
RightParen
).
LeftBracket
[.
RightBracket
].
LeftBrace
{.
RightBrace
}.
Dot
..
Hash
#.
Quote_
'.
Quasiquote_
`.
Unquote_
,.
UnquoteSplicing_
,@.
List
A list.
Quotation
A quotation.
Error
An error token.
Eof
End of stream.
Trait Implementations§
Source§impl Clone for SchemeElementType
impl Clone for SchemeElementType
Source§fn clone(&self) -> SchemeElementType
fn clone(&self) -> SchemeElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemeElementType
impl Debug for SchemeElementType
Source§impl<'de> Deserialize<'de> for SchemeElementType
impl<'de> Deserialize<'de> for SchemeElementType
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 ElementType for SchemeElementType
impl ElementType for SchemeElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<SchemeTokenType> for SchemeElementType
impl From<SchemeTokenType> for SchemeElementType
Source§fn from(token: SchemeTokenType) -> Self
fn from(token: SchemeTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for SchemeElementType
impl Hash for SchemeElementType
Source§impl PartialEq for SchemeElementType
impl PartialEq for SchemeElementType
Source§impl Serialize for SchemeElementType
impl Serialize for SchemeElementType
impl Copy for SchemeElementType
impl Eq for SchemeElementType
impl StructuralPartialEq for SchemeElementType
Auto Trait Implementations§
impl Freeze for SchemeElementType
impl RefUnwindSafe for SchemeElementType
impl Send for SchemeElementType
impl Sync for SchemeElementType
impl Unpin for SchemeElementType
impl UnsafeUnpin for SchemeElementType
impl UnwindSafe for SchemeElementType
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