pub enum FrontmatterIssue {
Malformed(String),
UnrepresentableDeclared {
key: String,
detail: String,
},
}Expand description
A failed frontmatter parse, classified for the compiler’s V-code mapping (spec 013 §3.3).
Variants§
Malformed(String)
Malformed YAML or a grammar violation: the V-002 class.
UnrepresentableDeclared
A DECLARED extra key whose value JSON cannot represent (non-string mapping key, YAML tag, non-finite number): the V-013 class.
Trait Implementations§
Source§impl Clone for FrontmatterIssue
impl Clone for FrontmatterIssue
Source§fn clone(&self) -> FrontmatterIssue
fn clone(&self) -> FrontmatterIssue
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 moreSource§impl Debug for FrontmatterIssue
impl Debug for FrontmatterIssue
Source§impl From<FrontmatterIssue> for Error
impl From<FrontmatterIssue> for Error
Source§fn from(issue: FrontmatterIssue) -> Self
fn from(issue: FrontmatterIssue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FrontmatterIssue
impl RefUnwindSafe for FrontmatterIssue
impl Send for FrontmatterIssue
impl Sync for FrontmatterIssue
impl Unpin for FrontmatterIssue
impl UnsafeUnpin for FrontmatterIssue
impl UnwindSafe for FrontmatterIssue
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