pub enum SyntaxKind {
Show 31 variants
Whitespace,
Linebreak,
CommentLine,
CommentBlock,
Expression(ExpressionKind),
StructMemberInitializer,
Statement(StatementKind),
Type(TypeKind),
Token,
Annotation,
AnnotationMember,
AnnotationList,
Parameter,
ParameterList,
FunctionOutput,
FunctionOutputs,
Function,
Constructor,
ConstParameter,
ConstParameterList,
ConstArgumentList,
StructDeclaration,
StructMemberDeclaration,
StructMemberDeclarationList,
Mapping,
Storage,
GlobalConst,
Import,
MainContents,
ModuleContents,
ProgramDeclaration,
}Expand description
A tag indicating the nature of a syntax node.
Variants§
Whitespace
Linebreak
CommentLine
CommentBlock
Expression(ExpressionKind)
StructMemberInitializer
Statement(StatementKind)
Type(TypeKind)
Token
Annotation
AnnotationMember
AnnotationList
Parameter
ParameterList
FunctionOutput
FunctionOutputs
Function
Constructor
ConstParameter
ConstParameterList
ConstArgumentList
StructDeclaration
StructMemberDeclaration
StructMemberDeclarationList
Mapping
Storage
GlobalConst
Import
MainContents
ModuleContents
ProgramDeclaration
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
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 SyntaxKind
impl Debug for SyntaxKind
Source§impl From<ExpressionKind> for SyntaxKind
impl From<ExpressionKind> for SyntaxKind
Source§fn from(value: ExpressionKind) -> Self
fn from(value: ExpressionKind) -> Self
Converts to this type from the input type.
Source§impl From<IntegerLiteralKind> for SyntaxKind
impl From<IntegerLiteralKind> for SyntaxKind
Source§fn from(value: IntegerLiteralKind) -> Self
fn from(value: IntegerLiteralKind) -> Self
Converts to this type from the input type.
Source§impl From<IntegerTypeKind> for SyntaxKind
impl From<IntegerTypeKind> for SyntaxKind
Source§fn from(value: IntegerTypeKind) -> Self
fn from(value: IntegerTypeKind) -> Self
Converts to this type from the input type.
Source§impl From<LiteralKind> for SyntaxKind
impl From<LiteralKind> for SyntaxKind
Source§fn from(value: LiteralKind) -> Self
fn from(value: LiteralKind) -> Self
Converts to this type from the input type.
Source§impl From<StatementKind> for SyntaxKind
impl From<StatementKind> for SyntaxKind
Source§fn from(value: StatementKind) -> Self
fn from(value: StatementKind) -> Self
Converts to this type from the input type.
Source§impl From<TypeKind> for SyntaxKind
impl From<TypeKind> for SyntaxKind
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
impl Copy for SyntaxKind
impl Eq for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl Freeze for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnwindSafe for SyntaxKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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