pub struct Parsed<'src> {
pub message: Option<Message<'src>>,
pub diagnostics: Diagnostics,
}Expand description
The result of parsing one message.
Fields§
§message: Option<Message<'src>>Some whenever the source has no syntax error — also when it has
data-model errors, which are then in diagnostics.
diagnostics: DiagnosticsEvery syntax error the frontend could recover to (with spans); when there is none, every data-model error.
Trait Implementations§
impl<'src> Eq for Parsed<'src>
impl<'src> StructuralPartialEq for Parsed<'src>
Auto Trait Implementations§
impl<'src> Freeze for Parsed<'src>
impl<'src> RefUnwindSafe for Parsed<'src>
impl<'src> Send for Parsed<'src>
impl<'src> Sync for Parsed<'src>
impl<'src> Unpin for Parsed<'src>
impl<'src> UnsafeUnpin for Parsed<'src>
impl<'src> UnwindSafe for Parsed<'src>
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