pub struct ErrorCollector {
errors: Vec<CompilerError>,
}
Fields§
§errors: Vec<CompilerError>
Implementations§
Source§impl ErrorCollector
impl ErrorCollector
pub fn new() -> Self
pub fn add_error(&mut self, error: CompilerError)
pub fn has_errors(&self) -> bool
pub fn report_errors(&self)
pub fn clear(&mut self)
pub fn take_errors(&mut self) -> Vec<CompilerError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorCollector
impl RefUnwindSafe for ErrorCollector
impl Send for ErrorCollector
impl Sync for ErrorCollector
impl Unpin for ErrorCollector
impl UnwindSafe for ErrorCollector
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