pub struct NimLanguage {
pub allow_comment: bool,
}Fields§
§allow_comment: boolImplementations§
Source§impl NimLanguage
impl NimLanguage
Trait Implementations§
Source§impl<'config> Builder<NimLanguage> for NimBuilder<'config>
impl<'config> Builder<NimLanguage> for NimBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
_source: &S,
_edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<NimLanguage>,
) -> OakDiagnostics<NimRoot>
fn build<'a, S: Source + ?Sized>( &self, _source: &S, _edits: &[TextEdit], _cache: &'a mut impl BuilderCache<NimLanguage>, ) -> OakDiagnostics<NimRoot>
Builds the structure from the source text.
Source§impl Clone for NimLanguage
impl Clone for NimLanguage
Source§fn clone(&self) -> NimLanguage
fn clone(&self) -> NimLanguage
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 NimLanguage
impl Debug for NimLanguage
Source§impl Default for NimLanguage
impl Default for NimLanguage
Source§impl<'de> Deserialize<'de> for NimLanguage
impl<'de> Deserialize<'de> for NimLanguage
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 NimLanguage
impl Hash for NimLanguage
Source§impl HoverProvider<NimLanguage> for NimHoverProvider
impl HoverProvider<NimLanguage> for NimHoverProvider
Source§impl Language for NimLanguage
impl Language for NimLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = NimSyntaxKind
type TokenType = NimSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = NimSyntaxKind
type ElementType = NimSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<NimLanguage> for NimLexer<'config>
impl<'config> Lexer<NimLanguage> for NimLexer<'config>
Source§fn lex<'s, S: Source + ?Sized>(
&self,
source: &'s S,
_edits: &[TextEdit],
cache: &'s mut impl LexerCache<NimLanguage>,
) -> LexOutput<NimLanguage>
fn lex<'s, S: Source + ?Sized>( &self, source: &'s S, _edits: &[TextEdit], cache: &'s mut impl LexerCache<NimLanguage>, ) -> LexOutput<NimLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<NimLanguage> for NimParser<'config>
impl<'config> Parser<NimLanguage> for NimParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<NimLanguage>,
) -> ParseOutput<'a, NimLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<NimLanguage>, ) -> ParseOutput<'a, NimLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for NimLanguage
impl PartialEq for NimLanguage
Source§impl Serialize for NimLanguage
impl Serialize for NimLanguage
impl Copy for NimLanguage
impl Eq for NimLanguage
impl StructuralPartialEq for NimLanguage
Auto Trait Implementations§
impl Freeze for NimLanguage
impl RefUnwindSafe for NimLanguage
impl Send for NimLanguage
impl Sync for NimLanguage
impl Unpin for NimLanguage
impl UnwindSafe for NimLanguage
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