pub struct FixOutcome {
pub source: String,
pub applied: Vec<AppliedFix>,
pub skipped: Vec<SkippedFix>,
pub iterations: usize,
}Expand description
Result of apply_fixes / apply_fixes_once.
Fields§
§source: StringThe fixed source. Bytes outside the applied edits are preserved
exactly (CRLF input is normalised to LF first, matching parse).
applied: Vec<AppliedFix>Fixes applied, across all passes, in application order.
skipped: Vec<SkippedFix>Fixes skipped in the final pass (earlier-pass skips are retried and either applied or re-skipped).
iterations: usizeNumber of passes that changed the source (0 = nothing to fix;
MAX_FIX_ITERATIONS = fixpoint not reached).
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
Source§impl<'de> Deserialize<'de> for FixOutcome
impl<'de> Deserialize<'de> for FixOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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