#[non_exhaustive]pub enum ReachError {
UnknownItem(ItemId),
UnknownImpl(ImplId),
Source(LoadError),
Budget(LoadError),
}Expand description
Why the reachability of a set of roots could not be given.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownItem(ItemId)
A root is past the items of this workspace. An ItemId is the
place of an item in the workspace that gave it, so an id of another
workspace that is not past the items of this one is read as the item
of this one at that place.
UnknownImpl(ImplId)
A root is past the impl blocks of this workspace; as for
ReachError::UnknownItem, an ImplId is a place.
Source(LoadError)
The text of a file of a reached item could not be read for its paths:
the thread that lexes it could not start
(LoadErrorKind::Spawn), or the text does not lex
(LoadErrorKind::Syntax), which a file the load parsed does not do;
or native format-context storage could not be allocated
(LoadErrorKind::Storage).
Budget(LoadError)
The walk passed its query-work limit or the item-bytes budget of the load
(Budget::ItemBytes), counted on from
what the load holds: a Budget load error naming the budget, its
limit and the file of the runs or the node being held.
Trait Implementations§
Source§impl Debug for ReachError
impl Debug for ReachError
Source§impl Display for ReachError
impl Display for ReachError
Source§impl Error for ReachError
impl Error for ReachError
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 ReachError
impl !UnwindSafe for ReachError
impl Forget for ReachError
impl Freeze for ReachError
impl Move for ReachError
impl Send for ReachError
impl Sync for ReachError
impl Unpin for ReachError
impl UnsafeUnpin for ReachError
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