#[repr(u16)]pub enum SyntaxKind {
Show 45 variants
TokenError = 0,
TokenLineBreak = 1,
TokenWhiteSpace = 2,
TokenComment = 3,
TokenLBrace = 4,
TokenRBrace = 5,
TokenLBracket = 6,
TokenRBracket = 7,
TokenLParen = 8,
TokenRParen = 9,
TokenComma = 10,
TokenTilde = 11,
TokenSlash = 12,
TokenWord = 13,
TokenDollar = 14,
TokenBeginMath = 15,
TokenEndMath = 16,
TokenAmpersand = 17,
TokenHash = 18,
TokenAsterisk = 19,
TokenAtSign = 20,
TokenUnderscore = 21,
TokenCaret = 22,
TokenApostrophe = 23,
TokenDitto = 24,
TokenSemicolon = 25,
TokenCommandSym = 26,
ClauseCommandName = 27,
ClauseArgument = 28,
ClauseLR = 29,
ItemNewLine = 30,
ItemText = 31,
ItemCurly = 32,
ItemBracket = 33,
ItemParen = 34,
ItemCmd = 35,
ItemEnv = 36,
ItemLR = 37,
ItemBegin = 38,
ItemEnd = 39,
ItemBlockComment = 40,
ItemTypstCode = 41,
ItemAttachComponent = 42,
ItemFormula = 43,
ScopeRoot = 44,
}
Variants§
TokenError = 0
TokenLineBreak = 1
TokenWhiteSpace = 2
TokenComment = 3
TokenLBrace = 4
TokenRBrace = 5
TokenLBracket = 6
TokenRBracket = 7
TokenLParen = 8
TokenRParen = 9
TokenComma = 10
TokenTilde = 11
TokenSlash = 12
TokenWord = 13
TokenDollar = 14
TokenBeginMath = 15
TokenEndMath = 16
TokenAmpersand = 17
TokenHash = 18
TokenAsterisk = 19
TokenAtSign = 20
TokenUnderscore = 21
TokenCaret = 22
TokenApostrophe = 23
TokenDitto = 24
TokenSemicolon = 25
TokenCommandSym = 26
ClauseCommandName = 27
ClauseArgument = 28
ClauseLR = 29
ItemNewLine = 30
ItemText = 31
ItemCurly = 32
ItemBracket = 33
ItemParen = 34
ItemCmd = 35
ItemEnv = 36
ItemLR = 37
ItemBegin = 38
ItemEnd = 39
ItemBlockComment = 40
ItemTypstCode = 41
ItemAttachComponent = 42
ItemFormula = 43
ScopeRoot = 44
Implementations§
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<SyntaxKind> for SyntaxKind
impl From<SyntaxKind> for SyntaxKind
Source§fn from(kind: SyntaxKind) -> Self
fn from(kind: SyntaxKind) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxKind> for SyntaxKind
impl From<SyntaxKind> for SyntaxKind
Source§fn from(kind: SyntaxKind) -> Self
fn from(kind: SyntaxKind) -> Self
Converts to this type from the input type.
Source§impl From<Token> for SyntaxKind
impl From<Token> for SyntaxKind
Source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl Ord for SyntaxKind
impl Ord for SyntaxKind
Source§fn cmp(&self, other: &SyntaxKind) -> Ordering
fn cmp(&self, other: &SyntaxKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
Source§impl PartialOrd for SyntaxKind
impl PartialOrd 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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.