pub struct TexLanguage {}Expand description
TeX 语言定义
Implementations§
Source§impl TexLanguage
impl TexLanguage
Trait Implementations§
Source§impl<'config> Builder<TexLanguage> for TexBuilder<'config>
impl<'config> Builder<TexLanguage> for TexBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<TexLanguage>,
) -> BuildOutput<TexLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<TexLanguage>, ) -> BuildOutput<TexLanguage>
Builds the structure from the source text.
Source§impl Clone for TexLanguage
impl Clone for TexLanguage
Source§fn clone(&self) -> TexLanguage
fn clone(&self) -> TexLanguage
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 TexLanguage
impl Debug for TexLanguage
Source§impl Default for TexLanguage
impl Default for TexLanguage
Source§fn default() -> TexLanguage
fn default() -> TexLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TexLanguage
impl<'de> Deserialize<'de> for TexLanguage
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 Hash for TexLanguage
impl Hash for TexLanguage
Source§impl Language for TexLanguage
impl Language for TexLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Markup
const CATEGORY: LanguageCategory = LanguageCategory::Markup
The category of the language.
Source§type TokenType = TexSyntaxKind
type TokenType = TexSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = TexSyntaxKind
type ElementType = TexSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<TexLanguage> for TexLexer<'config>
impl<'config> Lexer<TexLanguage> for TexLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<TexLanguage>,
) -> LexOutput<TexLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<TexLanguage>, ) -> LexOutput<TexLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<TexLanguage> for TexParser<'config>
impl<'config> Parser<TexLanguage> for TexParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<TexLanguage>,
) -> ParseOutput<'a, TexLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<TexLanguage>, ) -> ParseOutput<'a, TexLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for TexLanguage
impl PartialEq for TexLanguage
Source§impl Serialize for TexLanguage
impl Serialize for TexLanguage
impl Copy for TexLanguage
impl Eq for TexLanguage
impl StructuralPartialEq for TexLanguage
Auto Trait Implementations§
impl Freeze for TexLanguage
impl RefUnwindSafe for TexLanguage
impl Send for TexLanguage
impl Sync for TexLanguage
impl Unpin for TexLanguage
impl UnwindSafe for TexLanguage
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