pub struct TypstLanguage;Expand description
Typst 语言定义
Trait Implementations§
Source§impl<'config> Builder<TypstLanguage> for TypstBuilder<'config>
impl<'config> Builder<TypstLanguage> for TypstBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<TypstLanguage>,
) -> OakDiagnostics<TypstRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<TypstLanguage>, ) -> OakDiagnostics<TypstRoot>
Builds the structure from the source text.
Source§impl Clone for TypstLanguage
impl Clone for TypstLanguage
Source§fn clone(&self) -> TypstLanguage
fn clone(&self) -> TypstLanguage
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 TypstLanguage
impl Debug for TypstLanguage
Source§impl Default for TypstLanguage
impl Default for TypstLanguage
Source§fn default() -> TypstLanguage
fn default() -> TypstLanguage
Returns the “default value” for a type. Read more
Source§impl Hash for TypstLanguage
impl Hash for TypstLanguage
Source§impl Language for TypstLanguage
impl Language for TypstLanguage
Source§type TokenType = TypstSyntaxKind
type TokenType = TypstSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = TypstSyntaxKind
type ElementType = TypstSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = TypstRoot
type TypedRoot = TypstRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§impl<'config> Lexer<TypstLanguage> for TypstLexer<'config>
impl<'config> Lexer<TypstLanguage> for TypstLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
_cache: &'a mut impl LexerCache<TypstLanguage>,
) -> LexOutput<TypstLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], _cache: &'a mut impl LexerCache<TypstLanguage>, ) -> LexOutput<TypstLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<TypstLanguage> for TypstParser<'config>
impl<'config> Parser<TypstLanguage> for TypstParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<TypstLanguage>,
) -> ParseOutput<'a, TypstLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<TypstLanguage>, ) -> ParseOutput<'a, TypstLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for TypstLanguage
impl PartialEq for TypstLanguage
impl Copy for TypstLanguage
impl Eq for TypstLanguage
impl StructuralPartialEq for TypstLanguage
Auto Trait Implementations§
impl Freeze for TypstLanguage
impl RefUnwindSafe for TypstLanguage
impl Send for TypstLanguage
impl Sync for TypstLanguage
impl Unpin for TypstLanguage
impl UnwindSafe for TypstLanguage
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