pub struct HumanFormatter { /* private fields */ }Expand description
Human-readable terminal output formatter.
Implementations§
Source§impl HumanFormatter
impl HumanFormatter
pub fn new(use_color: bool) -> Self
Sourcepub fn format_file(
&self,
path: &Path,
source: &str,
violations: &[LintViolation],
) -> String
pub fn format_file( &self, path: &Path, source: &str, violations: &[LintViolation], ) -> String
Format violations for a single file.
Auto Trait Implementations§
impl Freeze for HumanFormatter
impl RefUnwindSafe for HumanFormatter
impl Send for HumanFormatter
impl Sync for HumanFormatter
impl Unpin for HumanFormatter
impl UnsafeUnpin for HumanFormatter
impl UnwindSafe for HumanFormatter
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