pub enum ThreadsRootPathClass {
ManagedCheckoutSlot,
ThreadsRoot,
BareThreadDir,
HeddleStorage,
OutsideHeddle,
}Expand description
Pure classification of a candidate checkout path vs heddle layout.
Mirrors the lexical half of CLI validate_worktree_target (heddle#572):
managed checkouts live under .heddle/threads/<seg>/<leaf>, never on the
threads root or bare per-thread dir, and never on other heddle storage.
Variants§
ManagedCheckoutSlot
Under .heddle/threads/ as a per-thread checkout slot (allowed).
ThreadsRoot
Exactly .heddle/threads — forbidden.
BareThreadDir
Direct child of threads root (threads/<seg> without leaf) — forbidden.
HeddleStorage
Under .heddle/ but outside threads/ — forbidden storage.
OutsideHeddle
Outside .heddle/ entirely (user --path or external) — allowed here.
Trait Implementations§
Source§impl Clone for ThreadsRootPathClass
impl Clone for ThreadsRootPathClass
Source§fn clone(&self) -> ThreadsRootPathClass
fn clone(&self) -> ThreadsRootPathClass
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 moreimpl Copy for ThreadsRootPathClass
Source§impl Debug for ThreadsRootPathClass
impl Debug for ThreadsRootPathClass
impl Eq for ThreadsRootPathClass
Source§impl PartialEq for ThreadsRootPathClass
impl PartialEq for ThreadsRootPathClass
impl StructuralPartialEq for ThreadsRootPathClass
Auto Trait Implementations§
impl Freeze for ThreadsRootPathClass
impl RefUnwindSafe for ThreadsRootPathClass
impl Send for ThreadsRootPathClass
impl Sync for ThreadsRootPathClass
impl Unpin for ThreadsRootPathClass
impl UnsafeUnpin for ThreadsRootPathClass
impl UnwindSafe for ThreadsRootPathClass
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