pub struct ErrorReporter { /* private fields */ }Implementations§
Source§impl ErrorReporter
impl ErrorReporter
pub fn new() -> Self
pub fn report_error(&mut self, error: QangCompilerError)
pub fn has_errors(&self) -> bool
pub fn errors(&self) -> &[QangCompilerError]
pub fn take_errors(&mut self) -> Vec<QangCompilerError>
pub fn merge(&mut self, other: Self)
Trait Implementations§
Source§impl Clone for ErrorReporter
impl Clone for ErrorReporter
Source§impl Debug for ErrorReporter
impl Debug for ErrorReporter
Auto Trait Implementations§
impl Freeze for ErrorReporter
impl RefUnwindSafe for ErrorReporter
impl Send for ErrorReporter
impl Sync for ErrorReporter
impl Unpin for ErrorReporter
impl UnsafeUnpin for ErrorReporter
impl UnwindSafe for ErrorReporter
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