pub struct PythonLanguage;Expand description
Python 语言定义
Trait Implementations§
Source§impl Clone for PythonLanguage
impl Clone for PythonLanguage
Source§fn clone(&self) -> PythonLanguage
fn clone(&self) -> PythonLanguage
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 PythonLanguage
impl Debug for PythonLanguage
Source§impl Default for PythonLanguage
impl Default for PythonLanguage
Source§fn default() -> PythonLanguage
fn default() -> PythonLanguage
Returns the “default value” for a type. Read more
Source§impl Language for PythonLanguage
impl Language for PythonLanguage
Source§type SyntaxKind = PythonSyntaxKind
type SyntaxKind = PythonSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§type TypedRoot = SourceFile
type TypedRoot = SourceFile
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<PythonLanguage> for PythonLexer<'config>
impl<'config> Lexer<PythonLanguage> for PythonLexer<'config>
Source§fn lex(&self, source: impl Source) -> LexOutput<PythonLanguage>
fn lex(&self, source: impl Source) -> LexOutput<PythonLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§fn lex_incremental(
&self,
source: impl Source,
_offset: usize,
_cache: IncrementalCache<'_, PythonLanguage>,
) -> LexOutput<PythonLanguage>
fn lex_incremental( &self, source: impl Source, _offset: usize, _cache: IncrementalCache<'_, PythonLanguage>, ) -> LexOutput<PythonLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§impl PartialEq for PythonLanguage
impl PartialEq for PythonLanguage
impl Copy for PythonLanguage
impl Eq for PythonLanguage
impl StructuralPartialEq for PythonLanguage
Auto Trait Implementations§
impl Freeze for PythonLanguage
impl RefUnwindSafe for PythonLanguage
impl Send for PythonLanguage
impl Sync for PythonLanguage
impl Unpin for PythonLanguage
impl UnwindSafe for PythonLanguage
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