pub struct ConflictedFile {
pub path: String,
pub has_base: bool,
pub has_ours: bool,
pub has_theirs: bool,
}Expand description
一个处于冲突状态的文件及其在 index 中的 stage 分布。
Fields§
§path: String相对仓库根目录的路径
has_base: bool是否存在 stage 1(base;add/add 冲突时缺失)
has_ours: bool是否存在 stage 2(ours;对方删除本方修改时才缺失本方)
has_theirs: bool是否存在 stage 3(theirs)
Trait Implementations§
Source§impl Clone for ConflictedFile
impl Clone for ConflictedFile
Source§fn clone(&self) -> ConflictedFile
fn clone(&self) -> ConflictedFile
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 ConflictedFile
impl Debug for ConflictedFile
impl Eq for ConflictedFile
Source§impl PartialEq for ConflictedFile
impl PartialEq for ConflictedFile
Source§fn eq(&self, other: &ConflictedFile) -> bool
fn eq(&self, other: &ConflictedFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConflictedFile
Auto Trait Implementations§
impl Freeze for ConflictedFile
impl RefUnwindSafe for ConflictedFile
impl Send for ConflictedFile
impl Sync for ConflictedFile
impl Unpin for ConflictedFile
impl UnsafeUnpin for ConflictedFile
impl UnwindSafe for ConflictedFile
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more