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