pub struct SyntaxFinding {
pub concept: String,
pub path: String,
pub line: Option<usize>,
pub language: String,
pub message: String,
}Expand description
One code block that did not parse.
Fields§
§concept: StringThe concept the block belongs to.
path: StringThe concept’s file, relative to the bundle root.
line: Option<usize>1-indexed line of the block’s opening fence within that file’s body, when it could be determined.
None for a computation whose code this crate could not locate in the
body — an indented block with no # Computation heading to anchor it.
Reporting a confident 1 there was worse than reporting nothing: it sent
a reader to the frontmatter for a fault further down the file.
language: StringThe language the block was tagged with, canonicalised.
message: StringWhat the parser said.
Trait Implementations§
Source§impl Clone for SyntaxFinding
impl Clone for SyntaxFinding
Source§fn clone(&self) -> SyntaxFinding
fn clone(&self) -> SyntaxFinding
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 SyntaxFinding
impl Debug for SyntaxFinding
Auto Trait Implementations§
impl Freeze for SyntaxFinding
impl RefUnwindSafe for SyntaxFinding
impl Send for SyntaxFinding
impl Sync for SyntaxFinding
impl Unpin for SyntaxFinding
impl UnsafeUnpin for SyntaxFinding
impl UnwindSafe for SyntaxFinding
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