pub struct DiagnosticBuilder { /* private fields */ }Expand description
Enhanced error message builder
Implementations§
Source§impl DiagnosticBuilder
impl DiagnosticBuilder
pub fn new() -> Self
pub fn add(&mut self, diagnostic: Diagnostic)
pub fn has_errors(&self) -> bool
pub fn error_count(&self) -> usize
pub fn into_result(self) -> Result<()>
pub fn diagnostics(&self) -> &[Diagnostic]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticBuilder
impl RefUnwindSafe for DiagnosticBuilder
impl Send for DiagnosticBuilder
impl Sync for DiagnosticBuilder
impl Unpin for DiagnosticBuilder
impl UnwindSafe for DiagnosticBuilder
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