pub struct OakDiagnostics<T> {
pub result: Result<T, OakError>,
pub diagnostics: Vec<OakError>,
}Expand description
Container for parsing results with associated diagnostics.
This struct holds both the primary result of a parsing operation and any diagnostic language that were encountered during parsing. This allows for error recovery where parsing can continue even after encountering language, collecting all issues for later analysis.
Fields§
§result: Result<T, OakError>The primary result of the parsing operation. May contain either a successful value or a fatal error.
diagnostics: Vec<OakError>A collection of non-fatal errors or warnings encountered during the operation.
Trait Implementations§
Source§impl<T: Clone> Clone for OakDiagnostics<T>
impl<T: Clone> Clone for OakDiagnostics<T>
Source§fn clone(&self) -> OakDiagnostics<T>
fn clone(&self) -> OakDiagnostics<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for OakDiagnostics<T>where
T: Freeze,
impl<T> !RefUnwindSafe for OakDiagnostics<T>
impl<T> Send for OakDiagnostics<T>where
T: Send,
impl<T> Sync for OakDiagnostics<T>where
T: Sync,
impl<T> Unpin for OakDiagnostics<T>where
T: Unpin,
impl<T> !UnwindSafe for OakDiagnostics<T>
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