pub struct FilePatchHunk {
pub old_start: f64,
pub old_lines: f64,
pub new_start: f64,
pub new_lines: f64,
pub lines: Vec<String>,
}Expand description
A single hunk in a structured patch.
Fields§
§old_start: f64Starting line number in the old file.
old_lines: f64Number of lines in the old file.
new_start: f64Starting line number in the new file.
new_lines: f64Number of lines in the new file.
lines: Vec<String>The diff lines (prefixed with +, -, or ).
Trait Implementations§
Source§impl Clone for FilePatchHunk
impl Clone for FilePatchHunk
Source§fn clone(&self) -> FilePatchHunk
fn clone(&self) -> FilePatchHunk
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 moreSource§impl Debug for FilePatchHunk
impl Debug for FilePatchHunk
Source§impl<'de> Deserialize<'de> for FilePatchHunk
impl<'de> Deserialize<'de> for FilePatchHunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FilePatchHunk
impl PartialEq for FilePatchHunk
Source§impl Serialize for FilePatchHunk
impl Serialize for FilePatchHunk
impl StructuralPartialEq for FilePatchHunk
Auto Trait Implementations§
impl Freeze for FilePatchHunk
impl RefUnwindSafe for FilePatchHunk
impl Send for FilePatchHunk
impl Sync for FilePatchHunk
impl Unpin for FilePatchHunk
impl UnwindSafe for FilePatchHunk
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