pub struct ParseResult {
pub tree: Segment,
pub diagnostics: Vec<ParseDiagnostic>,
}Expand description
Result of parsing: a CST (always produced) plus any diagnostics collected during error-recovery passes.
Fields§
§tree: SegmentThe concrete syntax tree. Always present — unparsable regions
are wrapped in SegmentType::Unparsable nodes.
diagnostics: Vec<ParseDiagnostic>Diagnostics emitted by the parser when it encountered unrecognised tokens and had to skip ahead.
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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