pub struct RangeEdit {
pub abs_path: String,
pub rel_path: String,
pub range: TextRange0Based,
pub text: String,
pub expected_hash: Option<String>,
}Expand description
A resolved, ready-to-apply edit. The name_path → range resolution has already
happened in ctx_refactor; the backend only ever sees an absolute path + range.
Fields§
§abs_path: StringAbsolute, jail-checked path of the file to edit.
rel_path: StringProject-relative path (for the wire body sent to Backing B).
range: TextRange0BasedThe canonical edit boundary (same in IDE and headless paths).
text: StringFinal text to write into range (indentation already baked in by Rust).
expected_hash: Option<String>Optional md5-hex of the current content of range; mismatch → CONFLICT.
Trait Implementations§
impl Eq for RangeEdit
impl StructuralPartialEq for RangeEdit
Auto Trait Implementations§
impl Freeze for RangeEdit
impl RefUnwindSafe for RangeEdit
impl Send for RangeEdit
impl Sync for RangeEdit
impl Unpin for RangeEdit
impl UnsafeUnpin for RangeEdit
impl UnwindSafe for RangeEdit
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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