pub struct ParsedDocument {
pub nodes: Vec<Node>,
pub diagnostics: Vec<ParseDiagnostic>,
}Expand description
Result of parse_document_recovering. Always populated — even
completely unrecoverable input yields an empty nodes + a
non-empty diagnostics list.
Fields§
§nodes: Vec<Node>Top-level nodes successfully lowered from the CST. Empty if
the CST root is unrecoverable; otherwise contains as many
partial nodes as the lowering could produce. A clean Relon
document yields exactly one element — the legacy single-root
Node — but the API shape is Vec<_> for forward
compatibility with future multi-top-level forms.
diagnostics: Vec<ParseDiagnostic>Span-bearing diagnostics describing why parsing was incomplete. Empty iff the source parsed cleanly.
Trait Implementations§
Source§impl Clone for ParsedDocument
impl Clone for ParsedDocument
Source§fn clone(&self) -> ParsedDocument
fn clone(&self) -> ParsedDocument
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 moreAuto Trait Implementations§
impl Freeze for ParsedDocument
impl RefUnwindSafe for ParsedDocument
impl Send for ParsedDocument
impl Sync for ParsedDocument
impl Unpin for ParsedDocument
impl UnsafeUnpin for ParsedDocument
impl UnwindSafe for ParsedDocument
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