pub struct ContextPaths {
pub tracevault_dir: PathBuf,
pub scope: WorktreeScope,
}Expand description
Resolved paths for context storage, rooted in the primary worktree’s .tracevault/.
Fields§
§tracevault_dir: PathBuf<primary_root>/.tracevault/
scope: WorktreeScopePrimary or Linked.
Implementations§
Source§impl ContextPaths
impl ContextPaths
Sourcepub fn global_path(&self) -> PathBuf
pub fn global_path(&self) -> PathBuf
<tracevault_dir>/context.json — the global (repo-wide) context file.
Sourcepub fn worktree_path(&self) -> Option<PathBuf>
pub fn worktree_path(&self) -> Option<PathBuf>
<tracevault_dir>/worktrees/<key>/context.json when in a linked worktree;
None when in the primary worktree.
Trait Implementations§
Source§impl Clone for ContextPaths
impl Clone for ContextPaths
Source§fn clone(&self) -> ContextPaths
fn clone(&self) -> ContextPaths
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 moreAuto Trait Implementations§
impl Freeze for ContextPaths
impl RefUnwindSafe for ContextPaths
impl Send for ContextPaths
impl Sync for ContextPaths
impl Unpin for ContextPaths
impl UnsafeUnpin for ContextPaths
impl UnwindSafe for ContextPaths
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