pub struct FixOutcome {
pub source: String,
pub applied: usize,
pub skipped: usize,
}Expand description
What applying a set of fixes to one file produced.
Fields§
§source: StringThe file’s new contents.
applied: usizeHow many fixes were applied.
skipped: usizeHow many were skipped because another fix had already claimed those bytes.
Reported rather than swallowed: a run that fixed three of five things and said it fixed everything would leave someone believing the file was clean.
Trait Implementations§
Source§impl Clone for FixOutcome
impl Clone for FixOutcome
Source§fn clone(&self) -> FixOutcome
fn clone(&self) -> FixOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixOutcome
impl Debug for FixOutcome
impl Eq for FixOutcome
Source§impl PartialEq for FixOutcome
impl PartialEq for FixOutcome
impl StructuralPartialEq for FixOutcome
Auto Trait Implementations§
impl Freeze for FixOutcome
impl RefUnwindSafe for FixOutcome
impl Send for FixOutcome
impl Sync for FixOutcome
impl Unpin for FixOutcome
impl UnsafeUnpin for FixOutcome
impl UnwindSafe for FixOutcome
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