pub enum AnchorResolution {
InPlace {
file_idx: usize,
hunk_idx: usize,
line_idx: usize,
},
Moved {
file_idx: usize,
hunk_idx: usize,
line_idx: usize,
from: u32,
},
Outdated(OutdatedReason),
}Expand description
Where a re-resolved anchor landed against a fresh diff scan. Indices
address files[file_idx].hunks[hunk_idx].lines[line_idx].
Variants§
InPlace
Still at its recorded line number with the same content.
Moved
One unambiguous match elsewhere. from is the line it left, which
the thread reports so a relocation is never silent.
Outdated(OutdatedReason)
Not relocated. The thread renders against its captured context, saying why.
Trait Implementations§
Source§impl Clone for AnchorResolution
impl Clone for AnchorResolution
impl Copy for AnchorResolution
Source§impl Debug for AnchorResolution
impl Debug for AnchorResolution
impl Eq for AnchorResolution
Source§impl PartialEq for AnchorResolution
impl PartialEq for AnchorResolution
impl StructuralPartialEq for AnchorResolution
Auto Trait Implementations§
impl Freeze for AnchorResolution
impl RefUnwindSafe for AnchorResolution
impl Send for AnchorResolution
impl Sync for AnchorResolution
impl Unpin for AnchorResolution
impl UnsafeUnpin for AnchorResolution
impl UnwindSafe for AnchorResolution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.