pub enum SyntaxErrorSource {
Yaml,
}Expand description
Which sublanguage validation produced a SyntaxError. Lets downstream
consumers (the linter) map to the right diagnostic code without the parser
knowing linter codes.
Variants§
Yaml
Embedded YAML — frontmatter metadata or a hashpipe option preamble.
Trait Implementations§
Source§impl Clone for SyntaxErrorSource
impl Clone for SyntaxErrorSource
Source§fn clone(&self) -> SyntaxErrorSource
fn clone(&self) -> SyntaxErrorSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SyntaxErrorSource
Source§impl Debug for SyntaxErrorSource
impl Debug for SyntaxErrorSource
impl Eq for SyntaxErrorSource
Source§impl PartialEq for SyntaxErrorSource
impl PartialEq for SyntaxErrorSource
Source§fn eq(&self, other: &SyntaxErrorSource) -> bool
fn eq(&self, other: &SyntaxErrorSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyntaxErrorSource
Auto Trait Implementations§
impl Freeze for SyntaxErrorSource
impl RefUnwindSafe for SyntaxErrorSource
impl Send for SyntaxErrorSource
impl Sync for SyntaxErrorSource
impl Unpin for SyntaxErrorSource
impl UnsafeUnpin for SyntaxErrorSource
impl UnwindSafe for SyntaxErrorSource
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