pub struct WitLanguage {}Trait Implementations§
Source§impl<'config> Builder<WitLanguage> for WitBuilder<'config>
impl<'config> Builder<WitLanguage> for WitBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<WitLanguage>,
) -> BuildOutput<WitLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<WitLanguage>, ) -> BuildOutput<WitLanguage>
Builds the structure from the source text.
Source§impl Clone for WitLanguage
impl Clone for WitLanguage
Source§fn clone(&self) -> WitLanguage
fn clone(&self) -> WitLanguage
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 WitLanguage
impl Debug for WitLanguage
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<'de> Deserialize<'de> for WitLanguage
impl<'de> Deserialize<'de> for WitLanguage
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 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 = WitTokenType
type TokenType = WitTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = WitElementType
type ElementType = WitElementType
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
Source§impl Serialize for WitLanguage
impl Serialize for WitLanguage
impl Copy for WitLanguage
Auto Trait Implementations§
impl Freeze for WitLanguage
impl RefUnwindSafe for WitLanguage
impl Send for WitLanguage
impl Sync for WitLanguage
impl Unpin for WitLanguage
impl UnsafeUnpin 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