pub enum SyntaxKind {
Keyword,
Type,
Function,
String,
Number,
Comment,
Operator,
Punctuation,
Identifier,
}Expand description
Language-neutral syntax token categories.
§Examples
use ailloli_ui_editor::code::SyntaxKind;
assert_ne!(SyntaxKind::Comment, SyntaxKind::Identifier);Variants§
Keyword
Reserved language word or structural keyword-like node.
Type
Type name or primitive type.
Function
Function or macro name.
String
String or character literal.
Number
Numeric literal.
Comment
Line or block comment.
Operator
Operator sequence.
Punctuation
Delimiter or punctuation byte.
Identifier
Identifier or Rust lifetime.
Trait Implementations§
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a copy 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<'de> Deserialize<'de> for SyntaxKind
impl<'de> Deserialize<'de> for SyntaxKind
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 Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
Source§impl Serialize for SyntaxKind
impl Serialize 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.