pub struct Context {
pub line: Option<usize>,
pub column: Option<usize>,
pub snippet: Option<String>,
}
Expand description
Provides additional context for front matter errors.
Fields§
§line: Option<usize>
Line number where the error occurred.
column: Option<usize>
Column number where the error occurred.
snippet: Option<String>
Snippet of the content where the error occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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