pub enum ContextScope {
Global,
Ancestor {
depth: usize,
},
Workspace,
}Expand description
Where a context document was found. Ordering is precedence: Global is the
weakest, Workspace the strongest.
Variants§
Global
A user-global file outside any workspace.
Ancestor
An ancestor of the workspace root. depth is 1 for the immediate
parent and grows with distance, so a larger depth is weaker.
Workspace
The workspace root itself.
Implementations§
Trait Implementations§
Source§impl Clone for ContextScope
impl Clone for ContextScope
Source§impl Debug for ContextScope
impl Debug for ContextScope
impl Eq for ContextScope
Source§impl Ord for ContextScope
impl Ord for ContextScope
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContextScope
impl PartialEq for ContextScope
Source§impl PartialOrd for ContextScope
impl PartialOrd for ContextScope
impl StructuralPartialEq for ContextScope
Auto Trait Implementations§
impl Freeze for ContextScope
impl RefUnwindSafe for ContextScope
impl Send for ContextScope
impl Sync for ContextScope
impl Unpin for ContextScope
impl UnsafeUnpin for ContextScope
impl UnwindSafe for ContextScope
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
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.