Struct sdml_parse::error::ErrorCounters
source · pub struct ErrorCounters { /* private fields */ }Expand description
This type is used to track the number of emitted diagnostics.
Implementations§
source§impl ErrorCounters
impl ErrorCounters
pub fn bugs(&self) -> u32
pub fn report(&mut self, severity: Severity)
pub fn errors(&self) -> u32
pub fn warnings(&self) -> u32
pub fn notes(&self) -> u32
pub fn help(&self) -> u32
pub fn total(&self) -> u64
pub fn display(&self, name: &Identifier) -> Result<(), CoreError>
Trait Implementations§
source§impl Add for ErrorCounters
impl Add for ErrorCounters
source§impl AddAssign for ErrorCounters
impl AddAssign for ErrorCounters
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl Clone for ErrorCounters
impl Clone for ErrorCounters
source§fn clone(&self) -> ErrorCounters
fn clone(&self) -> ErrorCounters
Returns a copy of the value. Read more
1.0.0 · 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 ErrorCounters
impl Debug for ErrorCounters
source§impl Default for ErrorCounters
impl Default for ErrorCounters
source§fn default() -> ErrorCounters
fn default() -> ErrorCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCounters
impl Send for ErrorCounters
impl Sync for ErrorCounters
impl Unpin for ErrorCounters
impl UnwindSafe for ErrorCounters
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