pub enum LiteralTypingError<T, E> {
Cursor(LiteralCursorError<T, E>),
Reasoning(ReasoningError<E>),
OccurrenceLimit,
RoleMismatch {
expected: LiteralRole,
occurrence: LiteralOccurrence<T>,
},
Literal {
occurrence: LiteralOccurrence<T>,
error: LiteralError<E>,
},
}Expand description
Aborted semantic phase; staged facts must remain unpublished.
Variants§
Cursor(LiteralCursorError<T, E>)
Cursor traversal/opening failed, retaining structural evidence when known.
Reasoning(ReasoningError<E>)
Shared clause compilation, storage, cancellation or output-budget failure.
OccurrenceLimit
Examination of another literal would exceed the occurrence budget.
RoleMismatch
Cursor supplied an occurrence from a different semantic phase.
Fields
§
expected: LiteralRoleConfigured phase.
§
occurrence: LiteralOccurrence<T>Rejected occurrence, retained without reading its payload.
Literal
Literal inspection failed, retaining identity and source/target role.
Fields
§
occurrence: LiteralOccurrence<T>Exact selected occurrence whose inspection failed.
§
error: LiteralError<E>Metadata, lexical, UTF-8, resource, cancellation or storage diagnostic.
Trait Implementations§
Source§impl<T, E: Display> Display for LiteralTypingError<T, E>
impl<T, E: Display> Display for LiteralTypingError<T, E>
Source§impl<T: Debug, E: Error + 'static> Error for LiteralTypingError<T, E>
impl<T: Debug, E: Error + 'static> Error for LiteralTypingError<T, E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<T, E> Forget for LiteralTypingError<T, E>
impl<T, E> Freeze for LiteralTypingError<T, E>
impl<T, E> Move for LiteralTypingError<T, E>
impl<T, E> RefUnwindSafe for LiteralTypingError<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for LiteralTypingError<T, E>
impl<T, E> Sync for LiteralTypingError<T, E>
impl<T, E> Unpin for LiteralTypingError<T, E>
impl<T, E> UnsafeUnpin for LiteralTypingError<T, E>where
E: UnsafeUnpin,
T: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<TermPosition>: UnsafeUnpin,
impl<T, E> UnwindSafe for LiteralTypingError<T, E>
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