pub struct VecSink { /* private fields */ }Expand description
Captures diagnostics into an in-memory Vec. Used by tests and
by Session::diagnostics() (the user-facing accessor).
Implementations§
Trait Implementations§
Source§impl DiagnosticSink for VecSink
impl DiagnosticSink for VecSink
Source§fn record(&mut self, d: Diagnostic)
fn record(&mut self, d: Diagnostic)
Record a diagnostic.
Auto Trait Implementations§
impl Freeze for VecSink
impl RefUnwindSafe for VecSink
impl Send for VecSink
impl Sync for VecSink
impl Unpin for VecSink
impl UnwindSafe for VecSink
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