pub struct StaleReport<'a> { /* private fields */ }Expand description
What cleanup found, and the words it uses to say so.
The two halves of cleanup – listing stale entries and removing them –
print the same three things in the same order and differ only in tense.
Holding the tense here leaves one printing path instead of two.
Implementations§
Source§impl<'a> StaleReport<'a>
impl<'a> StaleReport<'a>
Sourcepub const fn dry_run(entries: Vec<&'a IgnoreEntry>) -> Self
pub const fn dry_run(entries: Vec<&'a IgnoreEntry>) -> Self
Entries that would go, had this not been a dry run.
Sourcepub const fn removed(entries: Vec<&'a IgnoreEntry>) -> Self
pub const fn removed(entries: Vec<&'a IgnoreEntry>) -> Self
Entries that have gone.
Sourcepub fn entries(&self) -> &[&'a IgnoreEntry]
pub fn entries(&self) -> &[&'a IgnoreEntry]
The entries themselves, in the order they were found.
Auto Trait Implementations§
impl<'a> Freeze for StaleReport<'a>
impl<'a> RefUnwindSafe for StaleReport<'a>
impl<'a> Send for StaleReport<'a>
impl<'a> Sync for StaleReport<'a>
impl<'a> Unpin for StaleReport<'a>
impl<'a> UnsafeUnpin for StaleReport<'a>
impl<'a> UnwindSafe for StaleReport<'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