pub enum Reason {
Declaring,
Imported,
Path,
Opened,
ReExport,
Oracle,
Unresolved,
ByName,
OtherDeclaration,
External,
OracleOther,
}Expand description
What the file’s imports and paths said about an occurrence: the ground
for its Confidence. Views tag ? and ✗ sections with it.
Variants§
Declaring
Written in the module that declares the target.
Imported
An import resolving to the target brings the name in.
Path
The tail of a qualified path resolving to the target.
Opened
A glob (or whole-file) import opens the declaring module.
ReExport
Reached through a re-export (use vvv_core::Span for
vvv_core::text::span::Span) that vvv followed to the declaration.
Oracle
Syntax could not place it; an oracle — a build, a language server — said it is the declaration.
Unresolved
A bare name nothing imports, or a path whose head cannot be placed.
ByName
No declaration to judge against: a method or field, reached through a type; the token merely spells the name.
OtherDeclaration
Resolves to another declaration of the same name in the workspace.
External
Resolves into a package outside the workspace.
OracleOther
Syntax could not place it; an oracle said it is another declaration.
Implementations§
Source§impl Reason
impl Reason
pub fn confidence(self) -> Confidence
Trait Implementations§
impl Copy for Reason
Source§impl<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
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 Reason
Source§impl Ord for Reason
impl Ord for Reason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Reason
impl PartialOrd for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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
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>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more