#[non_exhaustive]pub enum MaterializeStrategy {
FastForward,
ThreeWayMerge,
TwoWayMerge,
UpToDate,
}Expand description
How a remote ref was materialized.
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.
FastForward
Remote was a strict superset of local — direct apply.
ThreeWayMerge
Both sides had changes — three-way merge with common ancestor.
TwoWayMerge
No common ancestor — two-way merge, local wins on conflicts.
UpToDate
Already up-to-date — no changes applied.
Trait Implementations§
Source§impl Clone for MaterializeStrategy
impl Clone for MaterializeStrategy
Source§fn clone(&self) -> MaterializeStrategy
fn clone(&self) -> MaterializeStrategy
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 moreSource§impl Debug for MaterializeStrategy
impl Debug for MaterializeStrategy
Source§impl Hash for MaterializeStrategy
impl Hash for MaterializeStrategy
Source§impl PartialEq for MaterializeStrategy
impl PartialEq for MaterializeStrategy
Source§fn eq(&self, other: &MaterializeStrategy) -> bool
fn eq(&self, other: &MaterializeStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MaterializeStrategy
impl StructuralPartialEq for MaterializeStrategy
Auto Trait Implementations§
impl Freeze for MaterializeStrategy
impl RefUnwindSafe for MaterializeStrategy
impl Send for MaterializeStrategy
impl Sync for MaterializeStrategy
impl Unpin for MaterializeStrategy
impl UnsafeUnpin for MaterializeStrategy
impl UnwindSafe for MaterializeStrategy
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.