pub struct ParseOutput {
pub program: Option<Program>,
pub errors: Vec<OpyError>,
pub warnings: Vec<PreprocessWarning>,
}Expand description
The outcome of a parse.
Fields§
§program: Option<Program>The parsed program, present only when no errors were collected.
errors: Vec<OpyError>Every structured error collected during the parse.
warnings: Vec<PreprocessWarning>Source-attributed warnings collected during the parse (for example the
pinned reference’s w_lone_else). They surface through the same
diagnostic channel as preprocessing warnings (#516).
Trait Implementations§
Source§impl Debug for ParseOutput
impl Debug for ParseOutput
Auto Trait Implementations§
impl Freeze for ParseOutput
impl RefUnwindSafe for ParseOutput
impl Send for ParseOutput
impl Sync for ParseOutput
impl Unpin for ParseOutput
impl UnsafeUnpin for ParseOutput
impl UnwindSafe for ParseOutput
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