pub struct CollectingHandler { /* private fields */ }Expand description
A DiagHandler that records diagnostics in memory for tests.
Implementations§
Source§impl CollectingHandler
impl CollectingHandler
pub fn new() -> CollectingHandler
pub fn messages(&self) -> &[ResolvedDiagnostic]
Trait Implementations§
Source§impl Default for CollectingHandler
impl Default for CollectingHandler
Source§impl DiagHandler for CollectingHandler
impl DiagHandler for CollectingHandler
Auto Trait Implementations§
impl Freeze for CollectingHandler
impl RefUnwindSafe for CollectingHandler
impl Send for CollectingHandler
impl Sync for CollectingHandler
impl Unpin for CollectingHandler
impl UnsafeUnpin for CollectingHandler
impl UnwindSafe for CollectingHandler
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