pub struct ParseOutcome<T> {
pub value: Option<T>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of a recovering parse.
Fields§
§value: Option<T>The recovered value, when the selected entry point can construct one.
parse_recovering currently always returns a ParsedProgram: valid
input produces the parsed tree, while invalid input produces a
whole-input error statement.
diagnostics: Vec<Diagnostic>Lexer and parser diagnostics in deterministic source order.
Trait Implementations§
Source§impl<T: Clone> Clone for ParseOutcome<T>
impl<T: Clone> Clone for ParseOutcome<T>
Source§fn clone(&self) -> ParseOutcome<T>
fn clone(&self) -> ParseOutcome<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ParseOutcome<T>
impl<T: Debug> Debug for ParseOutcome<T>
impl<T: Eq> Eq for ParseOutcome<T>
Source§impl<T: PartialEq> PartialEq for ParseOutcome<T>
impl<T: PartialEq> PartialEq for ParseOutcome<T>
impl<T: PartialEq> StructuralPartialEq for ParseOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for ParseOutcome<T>
impl<T> RefUnwindSafe for ParseOutcome<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for ParseOutcome<T>
impl<T> Sync for ParseOutcome<T>
impl<T> Unpin for ParseOutcome<T>
impl<T> UnsafeUnpin for ParseOutcome<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for ParseOutcome<T>where
Option<T>: UnwindSafe,
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