pub struct DiffGetPlan {
pub edit: Edit,
pub post_cursor_row: u32,
}Expand description
D.5.b (2026-05-30): describes the edit the diff-mode do
(diff-get) operator would apply when invoked at a given
cursor row on the active side of a session. Produced by
DiffSubsystem::compute_get_edit; consumed by dispatch
which translates it into an apply_edit_blocking call
and re-positions the cursor.
Fields§
§edit: EditThe mutation to apply to the active buffer (the side the cursor is on).
post_cursor_row: u32Post-edit cursor line — the start of the resolved
hunk on the active side. Cursor stays “on the hunk”
so successive ]c / [c jumps walk through
neighbouring hunks naturally.
Trait Implementations§
Source§impl Clone for DiffGetPlan
impl Clone for DiffGetPlan
Source§fn clone(&self) -> DiffGetPlan
fn clone(&self) -> DiffGetPlan
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 DiffGetPlan
impl Debug for DiffGetPlan
impl Eq for DiffGetPlan
Source§impl PartialEq for DiffGetPlan
impl PartialEq for DiffGetPlan
impl StructuralPartialEq for DiffGetPlan
Auto Trait Implementations§
impl Freeze for DiffGetPlan
impl RefUnwindSafe for DiffGetPlan
impl Send for DiffGetPlan
impl Sync for DiffGetPlan
impl Unpin for DiffGetPlan
impl UnsafeUnpin for DiffGetPlan
impl UnwindSafe for DiffGetPlan
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
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more