pub struct UpdateOperation<'a> {
pub offset: usize,
pub new_line: &'a str,
pub line_number: u32,
}Expand description
A batch update operation
Fields§
§offset: usizeByte offset of the line to update
new_line: &'a strNew line content
line_number: u32Line number for error reporting
Trait Implementations§
Source§impl<'a> Clone for UpdateOperation<'a>
impl<'a> Clone for UpdateOperation<'a>
Source§fn clone(&self) -> UpdateOperation<'a>
fn clone(&self) -> UpdateOperation<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for UpdateOperation<'a>
impl<'a> RefUnwindSafe for UpdateOperation<'a>
impl<'a> Send for UpdateOperation<'a>
impl<'a> Sync for UpdateOperation<'a>
impl<'a> Unpin for UpdateOperation<'a>
impl<'a> UnwindSafe for UpdateOperation<'a>
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