pub struct DiagnosticsInjection { /* private fields */ }Expand description
Diagnostics injection builder
Implementations§
Source§impl DiagnosticsInjection
impl DiagnosticsInjection
Sourcepub fn add_diagnostic(self, entry: DiagnosticEntry) -> Self
pub fn add_diagnostic(self, entry: DiagnosticEntry) -> Self
Add a diagnostic
Sourcepub fn set_diagnostics(self, entries: Vec<DiagnosticEntry>) -> Self
pub fn set_diagnostics(self, entries: Vec<DiagnosticEntry>) -> Self
Set diagnostics
Sourcepub fn with_max_entries(self, max: usize) -> Self
pub fn with_max_entries(self, max: usize) -> Self
Set max entries
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if has errors
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if has warnings
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticsInjection
impl RefUnwindSafe for DiagnosticsInjection
impl Send for DiagnosticsInjection
impl Sync for DiagnosticsInjection
impl Unpin for DiagnosticsInjection
impl UnsafeUnpin for DiagnosticsInjection
impl UnwindSafe for DiagnosticsInjection
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