Struct ErrorCollector
pub struct ErrorCollector {
errors: Vec<CompilerError>,
}
Fields§
§errors: Vec<CompilerError>
Implementations§
§impl ErrorCollector
impl ErrorCollector
pub fn new() -> ErrorCollector
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§
§impl Default for ErrorCollector
impl Default for ErrorCollector
§fn default() -> ErrorCollector
fn default() -> ErrorCollector
Returns the “default value” for a type. Read more
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