pub struct ReportCollector { /* private fields */ }
Implementations§
Source§impl ReportCollector
impl ReportCollector
pub fn new() -> Self
pub fn report(&mut self, report: Report)
pub const fn has_errors(&self) -> bool
pub fn has_reports(&self) -> bool
pub fn into_collected_reports(self) -> Vec<Report>
pub fn as_collected_reports(&self) -> &[Report]
Trait Implementations§
Source§impl Debug for ReportCollector
impl Debug for ReportCollector
Source§impl Default for ReportCollector
impl Default for ReportCollector
Source§fn default() -> ReportCollector
fn default() -> ReportCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReportCollector
impl RefUnwindSafe for ReportCollector
impl Send for ReportCollector
impl Sync for ReportCollector
impl Unpin for ReportCollector
impl UnwindSafe for ReportCollector
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