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.
Implementations§
Source§impl<T> OakDiagnostics<T>
impl<T> OakDiagnostics<T>
Trait Implementations§
Source§impl<T: Clone> Clone for OakDiagnostics<T>
impl<T: Clone> Clone for OakDiagnostics<T>
Source§impl<T: Debug> Debug for OakDiagnostics<T>
impl<T: Debug> Debug for OakDiagnostics<T>
Source§impl<'de, T> Deserialize<'de> for OakDiagnostics<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for OakDiagnostics<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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> UnsafeUnpin for OakDiagnostics<T>where
T: UnsafeUnpin,
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