pub enum LanguageElement {
Show 31 variants
Comment,
Constant,
ConstantDefinition,
Embedded,
Error,
Function,
FunctionCall,
FunctionDefinition,
Keyword,
LiteralBoolean,
LiteralNumber,
LiteralString,
LiteralStringSpecial,
Operator,
Method,
MethodDefinition,
Module,
ModuleDefinition,
Property,
PropertyDefinition,
Punctuation,
PunctuationBracket,
PunctuationDelimiter,
PunctuationSeparator,
Type,
TypeBuiltin,
TypeDefinition,
Variable,
VariableBuiltin,
VariableField,
VariableParameter,
}Expand description
These are the language elements used in RDF and SDML and map to the dotted-name format used in tree-sitter queries.
Variants§
Comment
Constant
ConstantDefinition
Embedded
Error
Function
FunctionCall
FunctionDefinition
Keyword
LiteralBoolean
LiteralNumber
LiteralString
LiteralStringSpecial
Operator
Method
MethodDefinition
Module
ModuleDefinition
Property
PropertyDefinition
Punctuation
PunctuationBracket
PunctuationDelimiter
PunctuationSeparator
Type
TypeBuiltin
TypeDefinition
Variable
VariableBuiltin
VariableField
VariableParameter
Trait Implementations§
Source§impl Clone for LanguageElement
impl Clone for LanguageElement
Source§fn clone(&self) -> LanguageElement
fn clone(&self) -> LanguageElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LanguageElement
Source§impl Debug for LanguageElement
impl Debug for LanguageElement
Source§impl Display for LanguageElement
impl Display for LanguageElement
impl Eq for LanguageElement
Source§impl Hash for LanguageElement
impl Hash for LanguageElement
Source§impl PartialEq for LanguageElement
impl PartialEq for LanguageElement
impl StructuralPartialEq for LanguageElement
Auto Trait Implementations§
impl Freeze for LanguageElement
impl RefUnwindSafe for LanguageElement
impl Send for LanguageElement
impl Sync for LanguageElement
impl Unpin for LanguageElement
impl UnsafeUnpin for LanguageElement
impl UnwindSafe for LanguageElement
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