pub struct UpdateFileChunk {
pub change_context: Option<String>,
pub old_lines: Vec<String>,
pub new_lines: Vec<String>,
pub is_end_of_file: bool,
}Expand description
One contiguous edit region within an UpdateFile hunk. old_lines is the
span to locate (context + removed lines, in file order); new_lines is its
replacement (context + added lines).
Fields§
§change_context: Option<String>Optional @@ anchor line used to disambiguate the region’s location.
old_lines: Vec<String>§new_lines: Vec<String>§is_end_of_file: boolThe region must sit at the end of the file (tolerant of trailing newline).
Trait Implementations§
Source§impl Clone for UpdateFileChunk
impl Clone for UpdateFileChunk
Source§fn clone(&self) -> UpdateFileChunk
fn clone(&self) -> UpdateFileChunk
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 UpdateFileChunk
impl Debug for UpdateFileChunk
Source§impl Default for UpdateFileChunk
impl Default for UpdateFileChunk
Source§fn default() -> UpdateFileChunk
fn default() -> UpdateFileChunk
Returns the “default value” for a type. Read more
impl Eq for UpdateFileChunk
Source§impl PartialEq for UpdateFileChunk
impl PartialEq for UpdateFileChunk
impl StructuralPartialEq for UpdateFileChunk
Auto Trait Implementations§
impl Freeze for UpdateFileChunk
impl RefUnwindSafe for UpdateFileChunk
impl Send for UpdateFileChunk
impl Sync for UpdateFileChunk
impl Unpin for UpdateFileChunk
impl UnsafeUnpin for UpdateFileChunk
impl UnwindSafe for UpdateFileChunk
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