#[non_exhaustive]pub enum CodeResolveError {
Show 14 variants
UnknownItem(ItemId),
UnknownImpl(ImplId),
OutsideItem(ItemId, usize),
MissingContext(ItemId),
ExpectedModule(ItemId),
MacroDefinition(ItemId),
Resolve(ResolveError),
Exports(Box<ExportError>),
ConfiguredSyntax(Box<LoadError>),
Query(Box<LoadError>),
MethodApplicability(ItemId),
AliasMember {
alias: ItemId,
member: String,
reason: &'static str,
},
SyntaxContext {
target: TargetId,
file: RelPath,
reason: &'static str,
},
NotExported {
root: ItemId,
path: String,
},
}Expand description
Failure to establish a reading context or resolve its module-level code path.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownItem(ItemId)
The load-local owner is absent from this workspace.
UnknownImpl(ImplId)
The load-local impl is absent from this workspace.
OutsideItem(ItemId, usize)
The byte is outside the selected item’s source span.
MissingContext(ItemId)
An indexed owner has no source-owned reading module.
ExpectedModule(ItemId)
A definition-scope query names an item that is not a module.
MacroDefinition(ItemId)
Macro definition tokens require invocation context before name resolution.
Resolve(ResolveError)
The shared resolver refused the path; its original cause is retained.
Exports(Box<ExportError>)
The library’s public surface refused its original resource or resolution query.
ConfiguredSyntax(Box<LoadError>)
Configured syntax selection preserves its original parser/load refusal.
Query(Box<LoadError>)
The bounded code query preserves its original resource refusal.
MethodApplicability(ItemId)
Generic applicability of this inherent method is not established.
AliasMember
Alias-member applicability is outside the explicitly supported syntax.
Fields
SyntaxContext
A configured syntax query lacks an actual admitted target/file context.
Fields
NotExported
A definition exists but is not exported by the selected library.
Trait Implementations§
Source§impl Debug for CodeResolveError
impl Debug for CodeResolveError
Source§impl Display for CodeResolveError
impl Display for CodeResolveError
Source§impl Error for CodeResolveError
impl Error for CodeResolveError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for CodeResolveError
impl !UnwindSafe for CodeResolveError
impl Forget for CodeResolveError
impl Freeze for CodeResolveError
impl Move for CodeResolveError
impl Send for CodeResolveError
impl Sync for CodeResolveError
impl Unpin for CodeResolveError
impl UnsafeUnpin for CodeResolveError
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> ErrorExt for T
impl<T> ErrorExt for T
Source§fn raise_typed(self) -> Exn<Self>where
Self: Sized,
fn raise_typed(self) -> Exn<Self>where
Self: Sized,
Self even when it is already an Error.Source§fn and_raise_typed<T>(self, context: T) -> Exn<T>
fn and_raise_typed<T>(self, context: T) -> Exn<T>
Self::and_raise(), retaining the context’s type in an exception.Source§fn raise_erased(self) -> Exnwhere
Self: Sized,
fn raise_erased(self) -> Exnwhere
Self: Sized,
crate::Error values reuse their existing frame and caller location.impl<T> EvidenceLease for T
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