pub struct OakDiagnostics<T> {
pub result: Result<T, OakError>,
pub diagnostics: Vec<OakError>,
}Expand description
Diagnostic information for parsing operations.
Contains both the primary result and any non-fatal errors or warnings.
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<'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