pub struct MarkdownLanguage;Expand description
Mark Markdown as a source language: its errors are Markdown errors, and it leaves every warning to the model’s checks.
Trait Implementations§
Source§impl Clone for MarkdownLanguage
impl Clone for MarkdownLanguage
Source§impl Debug for MarkdownLanguage
impl Debug for MarkdownLanguage
impl Eq for MarkdownLanguage
Source§impl PartialEq for MarkdownLanguage
impl PartialEq for MarkdownLanguage
Source§impl SourceLanguage for MarkdownLanguage
impl SourceLanguage for MarkdownLanguage
Source§const ERROR_CODE: &'static str = "svugy::markdown"
const ERROR_CODE: &'static str = "svugy::markdown"
Spell the stable diagnostic code of the language’s errors.
Source§fn import(source_text: &str) -> MarkdownImport
fn import(source_text: &str) -> MarkdownImport
Import
source_text into its model admission, keeping every error and warning on the way.impl StructuralPartialEq for MarkdownLanguage
Auto Trait Implementations§
impl Forget for MarkdownLanguage
impl Freeze for MarkdownLanguage
impl Move for MarkdownLanguage
impl RefUnwindSafe for MarkdownLanguage
impl Send for MarkdownLanguage
impl Sync for MarkdownLanguage
impl Unpin for MarkdownLanguage
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.