#[non_exhaustive]pub enum HunkExtent {
Context,
Function,
}Expand description
How far each hunk reaches beyond its changed lines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Context
UnifiedDiffOptions::context_lines unchanged lines on each side (Git -U).
Function
The whole enclosing function, found with the function-name rules (Git -W).
Trait Implementations§
Source§impl Clone for HunkExtent
impl Clone for HunkExtent
impl Copy for HunkExtent
Source§impl Debug for HunkExtent
impl Debug for HunkExtent
Source§impl Default for HunkExtent
impl Default for HunkExtent
impl Eq for HunkExtent
Source§impl PartialEq for HunkExtent
impl PartialEq for HunkExtent
impl StructuralPartialEq for HunkExtent
Auto Trait Implementations§
impl Forget for HunkExtent
impl Freeze for HunkExtent
impl RefUnwindSafe for HunkExtent
impl Send for HunkExtent
impl Sync for HunkExtent
impl Unpin for HunkExtent
impl UnsafeUnpin for HunkExtent
impl UnwindSafe for HunkExtent
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§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.