pub struct CopyHistory {
pub current_path: RepoPathBuf,
pub parents: Vec<CopyId>,
pub salt: Vec<u8>,
}
Expand description
Describes the copy history of a file. The copy object is unchanged when a file is modified.
Fields§
§current_path: RepoPathBuf
The file’s current path.
parents: Vec<CopyId>
IDs of the files that became the current incarnation of this file.
A newly created file has no parents. A regular copy or rename has one parent. A merge of multiple files has multiple parents.
salt: Vec<u8>
An optional piece of data to give the Copy object a different ID. May be randomly generated. This allows a commit to say that a file was replaced by a new incarnation of it, indicating a logically distinct file taking the place of the previous file at the path.
Trait Implementations§
Source§impl Clone for CopyHistory
impl Clone for CopyHistory
Source§fn clone(&self) -> CopyHistory
fn clone(&self) -> CopyHistory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ContentHash for CopyHistory
impl ContentHash for CopyHistory
Source§impl Debug for CopyHistory
impl Debug for CopyHistory
Source§impl Ord for CopyHistory
impl Ord for CopyHistory
Source§fn cmp(&self, other: &CopyHistory) -> Ordering
fn cmp(&self, other: &CopyHistory) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CopyHistory
impl PartialEq for CopyHistory
Source§impl PartialOrd for CopyHistory
impl PartialOrd for CopyHistory
impl Eq for CopyHistory
impl StructuralPartialEq for CopyHistory
Auto Trait Implementations§
impl Freeze for CopyHistory
impl RefUnwindSafe for CopyHistory
impl Send for CopyHistory
impl Sync for CopyHistory
impl Unpin for CopyHistory
impl UnwindSafe for CopyHistory
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> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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