pub enum FixCandidate {
ReplaceInLine {
line: usize,
start_col: usize,
end_col: usize,
replacement: String,
},
RewriteRootToTree {
root_line: usize,
root_indent: usize,
block_end_line: usize,
},
}Expand description
A fix described as data, so a later step can apply it as a surgical text edit without re-deriving the location.
Variants§
ReplaceInLine
Replace the byte range [start_col, end_col) on 0-based line line with
replacement. Columns are byte offsets within that line. Used for the
line-level renames (ARA002/ARA003) and the claim-header rewrite (ARA004).
Fields
RewriteRootToTree
ARA001 structural rewrite: turn the top-level root: single-node map into
a one-element tree: list. The re-indent/re-emit algorithm is step 2’s
job; this candidate carries the block’s location so the applier can read
and transform it deterministically.
Trait Implementations§
Source§impl Clone for FixCandidate
impl Clone for FixCandidate
Source§fn clone(&self) -> FixCandidate
fn clone(&self) -> FixCandidate
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 FixCandidate
impl Debug for FixCandidate
Source§impl PartialEq for FixCandidate
impl PartialEq for FixCandidate
Source§impl Serialize for FixCandidate
impl Serialize for FixCandidate
impl StructuralPartialEq for FixCandidate
Auto Trait Implementations§
impl Freeze for FixCandidate
impl RefUnwindSafe for FixCandidate
impl Send for FixCandidate
impl Sync for FixCandidate
impl Unpin for FixCandidate
impl UnsafeUnpin for FixCandidate
impl UnwindSafe for FixCandidate
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