pub struct WorkspaceRoot {
pub path: PathBuf,
pub kind: ProjectKind,
pub kinds: Vec<ProjectKind>,
pub detected: bool,
}Expand description
A detected project root.
Fields§
§path: PathBuf§kind: ProjectKindThe primary kind retained for display and existing single-answer call sites.
kinds: Vec<ProjectKind>Every marker found at this root, in marker-priority order (ADR-0012 §1).
detected: boolTrue when we found a real marker; false when we fell back to the given directory.
Implementations§
Source§impl WorkspaceRoot
impl WorkspaceRoot
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
The name shown in the explorer header — the root directory’s own name.
Trait Implementations§
Source§impl Clone for WorkspaceRoot
impl Clone for WorkspaceRoot
Source§fn clone(&self) -> WorkspaceRoot
fn clone(&self) -> WorkspaceRoot
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 WorkspaceRoot
impl Debug for WorkspaceRoot
impl Eq for WorkspaceRoot
Source§impl PartialEq for WorkspaceRoot
impl PartialEq for WorkspaceRoot
impl StructuralPartialEq for WorkspaceRoot
Auto Trait Implementations§
impl Freeze for WorkspaceRoot
impl RefUnwindSafe for WorkspaceRoot
impl Send for WorkspaceRoot
impl Sync for WorkspaceRoot
impl Unpin for WorkspaceRoot
impl UnsafeUnpin for WorkspaceRoot
impl UnwindSafe for WorkspaceRoot
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§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.