pub struct JsonLanguage;Expand description
Mark JSON as a source language: its one error is the text not parsing as a model document, and it raises no warnings.
Trait Implementations§
Source§impl Clone for JsonLanguage
impl Clone for JsonLanguage
Source§impl Debug for JsonLanguage
impl Debug for JsonLanguage
impl Eq for JsonLanguage
Source§impl PartialEq for JsonLanguage
impl PartialEq for JsonLanguage
Source§impl SourceLanguage for JsonLanguage
impl SourceLanguage for JsonLanguage
Source§const ERROR_CODE: &'static str = "svugy::malformed_json"
const ERROR_CODE: &'static str = "svugy::malformed_json"
Spell the stable diagnostic code of the language’s errors.
Source§fn import(source_text: &str) -> JsonImport
fn import(source_text: &str) -> JsonImport
Import
source_text into its model admission, keeping every error and warning on the way.impl StructuralPartialEq for JsonLanguage
Auto Trait Implementations§
impl Forget for JsonLanguage
impl Freeze for JsonLanguage
impl Move for JsonLanguage
impl RefUnwindSafe for JsonLanguage
impl Send for JsonLanguage
impl Sync for JsonLanguage
impl Unpin for JsonLanguage
impl UnsafeUnpin for JsonLanguage
impl UnwindSafe for JsonLanguage
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.