pub enum Standing {
Primary,
Canonical,
Misplaced,
Detached,
Ephemeral,
Missing,
}Expand description
Where a work tree stands against the topology.
Variants§
Primary
The primary checkout: exempt from the path rule, held to the trunk rule.
Canonical
A linked work tree at exactly its branch’s canonical path.
Misplaced
A linked work tree somewhere else. Migration brings it home.
Detached
A linked work tree with no branch. It has no canonical path and is never moved.
Ephemeral
A linked work tree under the operating system’s temporary directory or under the
primary checkout’s .claude/worktrees/: a session’s scratch checkout, owned and
removed by the harness that made it. Reported; migrated only on request.
Missing
A registration whose directory is gone. Repair drops it.
Implementations§
Source§impl Standing
impl Standing
Sourcepub fn is_acceptable(self) -> bool
pub fn is_acceptable(self) -> bool
Whether this standing satisfies the path rule. Primary and Detached are not
subject to it; Missing fails it because a stale registration is a defect;
Ephemeral fails it — a branch is being worked on where it does not belong — while
the topology as a whole stays valid, because the harness that made the checkout
removes it.
Trait Implementations§
impl Copy for Standing
Source§impl<'de> Deserialize<'de> for Standing
impl<'de> Deserialize<'de> for Standing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Standing
Source§impl JsonSchema for Standing
impl JsonSchema for Standing
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Standing
Auto Trait Implementations§
impl Freeze for Standing
impl RefUnwindSafe for Standing
impl Send for Standing
impl Sync for Standing
impl Unpin for Standing
impl UnsafeUnpin for Standing
impl UnwindSafe for Standing
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.