#[non_exhaustive]pub enum IndentHeuristic {
Enabled,
Disabled,
}Expand description
Git’s indent heuristic for placing a change whose boundaries are ambiguous.
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.
Enabled
Slide ambiguous change groups to the most readable position (Git’s default).
Disabled
Keep plain change compaction (--no-indent-heuristic).
Trait Implementations§
Source§impl Clone for IndentHeuristic
impl Clone for IndentHeuristic
impl Copy for IndentHeuristic
Source§impl Debug for IndentHeuristic
impl Debug for IndentHeuristic
Source§impl Default for IndentHeuristic
impl Default for IndentHeuristic
impl Eq for IndentHeuristic
Source§impl PartialEq for IndentHeuristic
impl PartialEq for IndentHeuristic
impl StructuralPartialEq for IndentHeuristic
Auto Trait Implementations§
impl Forget for IndentHeuristic
impl Freeze for IndentHeuristic
impl RefUnwindSafe for IndentHeuristic
impl Send for IndentHeuristic
impl Sync for IndentHeuristic
impl Unpin for IndentHeuristic
impl UnsafeUnpin for IndentHeuristic
impl UnwindSafe for IndentHeuristic
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.