pub struct WitLanguage {}Trait Implementations§
Source§impl Default for WitLanguage
impl Default for WitLanguage
Source§fn default() -> WitLanguage
fn default() -> WitLanguage
Returns the “default value” for a type. Read more
Source§impl Language for WitLanguage
impl Language for WitLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Dsl
const CATEGORY: LanguageCategory = LanguageCategory::Dsl
The category of the language.
Source§type TokenType = WitSyntaxKind
type TokenType = WitSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = WitSyntaxKind
type ElementType = WitSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<WitLanguage> for WitLexer<'config>
impl<'config> Lexer<WitLanguage> for WitLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<WitLanguage>,
) -> LexOutput<WitLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<WitLanguage>, ) -> LexOutput<WitLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<WitLanguage> for WitParser<'config>
impl<'config> Parser<WitLanguage> for WitParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<WitLanguage>,
) -> ParseOutput<'a, WitLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<WitLanguage>, ) -> ParseOutput<'a, WitLanguage>
The core parsing entry point. Read more
Auto Trait Implementations§
impl Freeze for WitLanguage
impl RefUnwindSafe for WitLanguage
impl Send for WitLanguage
impl Sync for WitLanguage
impl Unpin for WitLanguage
impl UnwindSafe for WitLanguage
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