pub enum ProjectRootSource {
Git,
AncestorWalk,
Fallback,
}Expand description
How ProjectRoot was determined.
Variants§
Git
Resolved via git rev-parse --git-common-dir (works from any worktree).
AncestorWalk
Git is not available or start is not in a git repo; root was found by
walking ancestors for the nearest .tracevault/ directory.
Fallback
Neither git nor an ancestor .tracevault/ was found; start itself is
returned as the root (matching the existing unwrap_or(start) fallback).
Trait Implementations§
Source§impl Clone for ProjectRootSource
impl Clone for ProjectRootSource
Source§fn clone(&self) -> ProjectRootSource
fn clone(&self) -> ProjectRootSource
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 ProjectRootSource
impl Debug for ProjectRootSource
Source§impl PartialEq for ProjectRootSource
impl PartialEq for ProjectRootSource
impl StructuralPartialEq for ProjectRootSource
Auto Trait Implementations§
impl Freeze for ProjectRootSource
impl RefUnwindSafe for ProjectRootSource
impl Send for ProjectRootSource
impl Sync for ProjectRootSource
impl Unpin for ProjectRootSource
impl UnsafeUnpin for ProjectRootSource
impl UnwindSafe for ProjectRootSource
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