#[repr(u8)]pub enum MergeStyle {
FastForwardOnly = 0,
Merge = 1,
Rebase = 2,
RebaseMerge = 3,
Squash = 4,
}Expand description
The merge strategy preselected in the merge dialog.
Variants§
FastForwardOnly = 0
Merge only when the branch can fast-forward.
Merge = 1
Create a merge commit.
Rebase = 2
Rebase the commits onto the base branch.
RebaseMerge = 3
Rebase the commits, then create a merge commit.
Squash = 4
Squash the commits into one.
Implementations§
Trait Implementations§
Source§impl Clone for MergeStyle
impl Clone for MergeStyle
Source§fn clone(&self) -> MergeStyle
fn clone(&self) -> MergeStyle
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 MergeStyle
Source§impl Debug for MergeStyle
impl Debug for MergeStyle
Source§impl Display for MergeStyle
impl Display for MergeStyle
impl Eq for MergeStyle
Source§impl<'ʄ> Facet<'ʄ> for MergeStyle
impl<'ʄ> Facet<'ʄ> for MergeStyle
Source§impl FromStr for MergeStyle
impl FromStr for MergeStyle
Source§impl PartialEq for MergeStyle
impl PartialEq for MergeStyle
impl StructuralPartialEq for MergeStyle
Auto Trait Implementations§
impl Freeze for MergeStyle
impl RefUnwindSafe for MergeStyle
impl Send for MergeStyle
impl Sync for MergeStyle
impl Unpin for MergeStyle
impl UnsafeUnpin for MergeStyle
impl UnwindSafe for MergeStyle
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.