pub struct ErrorBuilder { /* private fields */ }Expand description
Builder for creating LintError with pre-filled rule and category
Implementations§
Source§impl ErrorBuilder
impl ErrorBuilder
Sourcepub fn error(&self, message: &str, line: usize, column: usize) -> LintError
pub fn error(&self, message: &str, line: usize, column: usize) -> LintError
Create an error with Error severity
Sourcepub fn warning(&self, message: &str, line: usize, column: usize) -> LintError
pub fn warning(&self, message: &str, line: usize, column: usize) -> LintError
Create an error with Warning severity
Sourcepub fn error_at(
&self,
message: &str,
directive: &(impl DirectiveExt + ?Sized),
) -> LintError
pub fn error_at( &self, message: &str, directive: &(impl DirectiveExt + ?Sized), ) -> LintError
Create an error from a directive’s location
Sourcepub fn warning_at(
&self,
message: &str,
directive: &(impl DirectiveExt + ?Sized),
) -> LintError
pub fn warning_at( &self, message: &str, directive: &(impl DirectiveExt + ?Sized), ) -> LintError
Create a warning from a directive’s location
Trait Implementations§
Source§impl Clone for ErrorBuilder
impl Clone for ErrorBuilder
Source§fn clone(&self) -> ErrorBuilder
fn clone(&self) -> ErrorBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ErrorBuilder
impl RefUnwindSafe for ErrorBuilder
impl Send for ErrorBuilder
impl Sync for ErrorBuilder
impl Unpin for ErrorBuilder
impl UnsafeUnpin for ErrorBuilder
impl UnwindSafe for ErrorBuilder
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