pub struct ReportPrinter { /* private fields */ }Implementations§
Source§impl ReportPrinter
impl ReportPrinter
pub fn new(files_scanned: usize) -> Self
pub fn with_fixed(self, fixed: usize) -> Self
pub fn with_baseline( self, baseline: Option<String>, suppressed: usize, stale: usize, ) -> Self
pub fn with_config_file(self, config_file: Option<String>) -> Self
pub fn with_exclusions(self, exclusions: Vec<(String, usize)>) -> Self
pub fn with_package_rosters(self, rosters: Vec<PackageRoster>) -> Self
pub fn with_rules( self, applied: Vec<String>, skipped: Vec<String>, unconfigured: Vec<(String, String)>, ) -> Self
pub fn with_threshold(self, threshold: OffenceThreshold) -> Self
pub fn print(&self, offences: &[Offence])
pub fn render(&self, offences: &[Offence]) -> String
Auto Trait Implementations§
impl Freeze for ReportPrinter
impl RefUnwindSafe for ReportPrinter
impl Send for ReportPrinter
impl Sync for ReportPrinter
impl Unpin for ReportPrinter
impl UnsafeUnpin for ReportPrinter
impl UnwindSafe for ReportPrinter
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