pub struct DiffHunkHeader {
pub old_start: u32,
pub old_lines: u32,
pub new_start: u32,
pub new_lines: u32,
}Available on crate feature
file-changes only.Expand description
A struct to represent the header information of a diff hunk.
Fields§
§old_start: u32The starting line number of the old hunk.
old_lines: u32The total number of lines in the old hunk.
new_start: u32The starting line number of the new hunk.
new_lines: u32The total number of lines in the new hunk.
Trait Implementations§
Source§impl Clone for DiffHunkHeader
impl Clone for DiffHunkHeader
Source§fn clone(&self) -> DiffHunkHeader
fn clone(&self) -> DiffHunkHeader
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 moreimpl Copy for DiffHunkHeader
Source§impl Debug for DiffHunkHeader
impl Debug for DiffHunkHeader
impl Eq for DiffHunkHeader
Source§impl PartialEq for DiffHunkHeader
impl PartialEq for DiffHunkHeader
Source§fn eq(&self, other: &DiffHunkHeader) -> bool
fn eq(&self, other: &DiffHunkHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiffHunkHeader
Auto Trait Implementations§
impl Freeze for DiffHunkHeader
impl RefUnwindSafe for DiffHunkHeader
impl Send for DiffHunkHeader
impl Sync for DiffHunkHeader
impl Unpin for DiffHunkHeader
impl UnsafeUnpin for DiffHunkHeader
impl UnwindSafe for DiffHunkHeader
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.