pub struct LandingLocation {
pub git_dir: PathBuf,
pub index_path: PathBuf,
pub real_index_path: PathBuf,
pub registry_root: PathBuf,
}Expand description
What:
The landing lock and index paths of one repository selection.
Why:
LandingLocation;
the real index is the worktree’s <git-dir>/index.
In TS you’d write (pseudocode):
type LandingLocation = { cwd: string; gitDir: string; indexPath: string; realIndexPath: string; registryRoot: string };Fields§
§git_dir: PathBufPer-worktree Git directory.
index_path: PathBufIndex Git would write,
honouring GIT_INDEX_FILE.
real_index_path: PathBufThe worktree’s real index,
<git-dir>/index.
registry_root: PathBufTransaction registry directory that holds the landing lock.
Trait Implementations§
Source§impl Clone for LandingLocation
impl Clone for LandingLocation
Source§impl Debug for LandingLocation
impl Debug for LandingLocation
impl Eq for LandingLocation
Source§impl PartialEq for LandingLocation
impl PartialEq for LandingLocation
impl StructuralPartialEq for LandingLocation
Auto Trait Implementations§
impl Freeze for LandingLocation
impl RefUnwindSafe for LandingLocation
impl Send for LandingLocation
impl Sync for LandingLocation
impl Unpin for LandingLocation
impl UnsafeUnpin for LandingLocation
impl UnwindSafe for LandingLocation
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