pub struct WorktreeCopyEntry {
pub kind: EntryKind,
pub mode: u32,
pub relative_path: String,
}Expand description
What: One entry of a manifest: its kind, its retained mode and its repository path. Why: A manifest is compared with another manifest entry by entry.
In TS you’d write (pseudocode):
type WorktreeCopyEntry = { kind: WorktreeCopyEntryKind; mode: number; relativePath: string };Fields§
§kind: EntryKindCopy kind of the entry.
mode: u32Retained permission bits; zero where the platform has no such bits.
relative_path: StringSlash-separated repository path.
Trait Implementations§
Source§impl Clone for WorktreeCopyEntry
impl Clone for WorktreeCopyEntry
Source§impl Debug for WorktreeCopyEntry
impl Debug for WorktreeCopyEntry
impl Eq for WorktreeCopyEntry
Source§impl PartialEq for WorktreeCopyEntry
impl PartialEq for WorktreeCopyEntry
impl StructuralPartialEq for WorktreeCopyEntry
Auto Trait Implementations§
impl Freeze for WorktreeCopyEntry
impl RefUnwindSafe for WorktreeCopyEntry
impl Send for WorktreeCopyEntry
impl Sync for WorktreeCopyEntry
impl Unpin for WorktreeCopyEntry
impl UnsafeUnpin for WorktreeCopyEntry
impl UnwindSafe for WorktreeCopyEntry
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> 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