pub enum ProjectKind {
Marker(String),
Pwd,
}Expand description
How a Project’s root was decided — for :project-root, for
diagnostics, and for the rare consumer that legitimately cares
(magit wants a VCS root specifically; a terminal does not).
Variants§
Marker(String)
A marker file or directory was found. Carries which one, so “why is my project root here” is answerable.
Pwd
No marker anywhere up the tree; the working directory stands in.
Trait Implementations§
Source§impl Clone for ProjectKind
impl Clone for ProjectKind
Source§fn clone(&self) -> ProjectKind
fn clone(&self) -> ProjectKind
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 ProjectKind
impl Debug for ProjectKind
impl Eq for ProjectKind
Source§impl PartialEq for ProjectKind
impl PartialEq for ProjectKind
impl StructuralPartialEq for ProjectKind
Auto Trait Implementations§
impl Freeze for ProjectKind
impl RefUnwindSafe for ProjectKind
impl Send for ProjectKind
impl Sync for ProjectKind
impl Unpin for ProjectKind
impl UnsafeUnpin for ProjectKind
impl UnwindSafe for ProjectKind
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,
§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
Compare self to
key and return true if they are equal.