pub struct Report {
pub code: Code,
pub subject: Option<String>,
pub location: Option<ArgvSpan>,
pub rendered: String,
}Expand description
A parse outcome ready for a JSON reporter, editor, or another diagnostic framework.
The parser’s original Error remains allocation-free on ordinary grammar failures. This
cold-path value owns its human rendering and optional subject so an embedding does not need
to reverse-engineer enum variants or scrape terminal text.
Fields§
§code: Code§subject: Option<String>§location: Option<ArgvSpan>§rendered: StringTrait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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