pub struct ErrorReporter { /* private fields */ }Expand description
Error reporting utilities
Implementations§
Source§impl ErrorReporter
impl ErrorReporter
pub fn new() -> Self
pub fn add_error(&mut self, error: PostCSSError, context: ErrorContext)
pub fn add_warning(&mut self, error: PostCSSError, context: ErrorContext)
pub fn has_errors(&self) -> bool
pub fn has_warnings(&self) -> bool
pub fn get_errors(&self) -> &[ContextualError]
pub fn get_warnings(&self) -> &[ContextualError]
pub fn clear(&mut self)
pub fn to_report(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorReporter
impl RefUnwindSafe for ErrorReporter
impl Send for ErrorReporter
impl Sync for ErrorReporter
impl Unpin 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