pub struct ParseReport { /* private fields */ }Expand description
The outcome of a parse: separated errors and warnings.
A parse “succeeds” (is_ok) when there are no errors — warnings do not
block success but must still be surfaced by callers.
Implementations§
Source§impl ParseReport
impl ParseReport
Sourcepub fn errors(&self) -> &[Diagnostic]
pub fn errors(&self) -> &[Diagnostic]
All errors, in the order they were recorded.
Sourcepub fn warnings(&self) -> &[Diagnostic]
pub fn warnings(&self) -> &[Diagnostic]
All warnings, in the order they were recorded.
Trait Implementations§
Source§impl Clone for ParseReport
impl Clone for ParseReport
Source§fn clone(&self) -> ParseReport
fn clone(&self) -> ParseReport
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 moreSource§impl Debug for ParseReport
impl Debug for ParseReport
Source§impl Default for ParseReport
impl Default for ParseReport
Source§fn default() -> ParseReport
fn default() -> ParseReport
Returns the “default value” for a type. Read more
Source§impl Display for ParseReport
impl Display for ParseReport
Source§impl PartialEq for ParseReport
impl PartialEq for ParseReport
Source§impl Serialize for ParseReport
impl Serialize for ParseReport
impl StructuralPartialEq for ParseReport
Auto Trait Implementations§
impl Freeze for ParseReport
impl RefUnwindSafe for ParseReport
impl Send for ParseReport
impl Sync for ParseReport
impl Unpin for ParseReport
impl UnsafeUnpin for ParseReport
impl UnwindSafe for ParseReport
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