pub struct ParseResult {
pub tree: SyntaxTree,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Output of crate::parse. Diagnostics may include warnings even
when the tree is structurally usable; callers decide what to do per
ParseResult::has_errors.
Fields§
§tree: SyntaxTree§diagnostics: Vec<Diagnostic>Implementations§
Source§impl ParseResult
impl ParseResult
pub fn has_errors(&self) -> bool
Trait Implementations§
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