pub struct HunkHeader {
pub before_hunk_start: u32,
pub before_hunk_len: u32,
pub after_hunk_start: u32,
pub after_hunk_len: u32,
}Available on crate feature
blob only.Expand description
Holds information about a unified diff hunk, specifically with respect to line numbers.
Fields§
§before_hunk_start: u32The 1-based start position in the ‘before’ lines.
before_hunk_len: u32The size of the ‘before’ hunk in lines.
after_hunk_start: u32The 1-based start position in the ‘after’ lines.
after_hunk_len: u32The size of the ‘after’ hunk in lines.
Trait Implementations§
Source§impl Clone for HunkHeader
impl Clone for HunkHeader
Source§fn clone(&self) -> HunkHeader
fn clone(&self) -> HunkHeader
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 HunkHeader
impl Debug for HunkHeader
Source§impl Default for HunkHeader
impl Default for HunkHeader
Source§fn default() -> HunkHeader
fn default() -> HunkHeader
Returns the “default value” for a type. Read more
Source§impl Display for HunkHeader
impl Display for HunkHeader
Source§impl Hash for HunkHeader
impl Hash for HunkHeader
Source§impl Ord for HunkHeader
impl Ord for HunkHeader
Source§fn cmp(&self, other: &HunkHeader) -> Ordering
fn cmp(&self, other: &HunkHeader) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HunkHeader
impl PartialEq for HunkHeader
Source§impl PartialOrd for HunkHeader
impl PartialOrd for HunkHeader
impl Copy for HunkHeader
impl Eq for HunkHeader
impl StructuralPartialEq for HunkHeader
Auto Trait Implementations§
impl Freeze for HunkHeader
impl RefUnwindSafe for HunkHeader
impl Send for HunkHeader
impl Sync for HunkHeader
impl Unpin for HunkHeader
impl UnwindSafe for HunkHeader
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.