pub struct MarkdownLanguage {
pub allow_math: bool,
}Fields§
§allow_math: boolTrait Implementations§
Source§impl<'config> Builder<MarkdownLanguage> for MarkdownBuilder<'config>
impl<'config> Builder<MarkdownLanguage> for MarkdownBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<MarkdownLanguage>,
) -> BuildOutput<MarkdownLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<MarkdownLanguage>, ) -> BuildOutput<MarkdownLanguage>
Builds the structure from the source text.
Source§impl Clone for MarkdownLanguage
impl Clone for MarkdownLanguage
Source§fn clone(&self) -> MarkdownLanguage
fn clone(&self) -> MarkdownLanguage
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 MarkdownLanguage
impl Debug for MarkdownLanguage
Source§impl Default for MarkdownLanguage
impl Default for MarkdownLanguage
Source§impl<'de> Deserialize<'de> for MarkdownLanguage
impl<'de> Deserialize<'de> for MarkdownLanguage
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 MarkdownLanguage
impl Hash for MarkdownLanguage
Source§impl Language for MarkdownLanguage
impl Language for MarkdownLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Markup
const CATEGORY: LanguageCategory = LanguageCategory::Markup
The category of the language.
Source§type TokenType = MarkdownSyntaxKind
type TokenType = MarkdownSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = MarkdownSyntaxKind
type ElementType = MarkdownSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = MarkdownRoot
type TypedRoot = MarkdownRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<MarkdownLanguage> for MarkdownLexer<'config>
impl<'config> Lexer<MarkdownLanguage> for MarkdownLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<MarkdownLanguage>,
) -> LexOutput<MarkdownLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<MarkdownLanguage>, ) -> LexOutput<MarkdownLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<MarkdownLanguage> for MarkdownParser<'config>
impl<'config> Parser<MarkdownLanguage> for MarkdownParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<MarkdownLanguage>,
) -> ParseOutput<'a, MarkdownLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<MarkdownLanguage>, ) -> ParseOutput<'a, MarkdownLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for MarkdownLanguage
impl PartialEq for MarkdownLanguage
Source§impl Serialize for MarkdownLanguage
impl Serialize for MarkdownLanguage
impl Copy for MarkdownLanguage
impl Eq for MarkdownLanguage
impl StructuralPartialEq for MarkdownLanguage
Auto Trait Implementations§
impl Freeze for MarkdownLanguage
impl RefUnwindSafe for MarkdownLanguage
impl Send for MarkdownLanguage
impl Sync for MarkdownLanguage
impl Unpin for MarkdownLanguage
impl UnwindSafe for MarkdownLanguage
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