pub struct StatsCommand<'a> { /* private fields */ }Expand description
stats: the summary and nothing else.
Implementations§
Source§impl<'a> StatsCommand<'a>
impl<'a> StatsCommand<'a>
pub const fn new(result: &'a AnalysisResult, reporter: &'a dyn Reporter) -> Self
Sourcepub fn run(&self) -> CliResult<CommandOutcome>
pub fn run(&self) -> CliResult<CommandOutcome>
Build the duplication summary.
§Errors
Returns crate::cli::cli_error::CliError::Io if the reporter fails.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StatsCommand<'a>
impl<'a> !Send for StatsCommand<'a>
impl<'a> !Sync for StatsCommand<'a>
impl<'a> !UnwindSafe for StatsCommand<'a>
impl<'a> Freeze for StatsCommand<'a>
impl<'a> Unpin for StatsCommand<'a>
impl<'a> UnsafeUnpin for StatsCommand<'a>
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