pub enum LiteralCursorError<T, E> {
Storage(E),
Traversal(OccurrenceError<E>),
Open {
occurrence: TermOccurrence<T>,
error: E,
},
}Expand description
Failure to enumerate or open a selected literal; never successful EOF.
Variants§
Storage(E)
Custom cursor/backend selection failed.
Traversal(OccurrenceError<E>)
Native recursive occurrence traversal failed.
Open
Opening a known occurrence failed, retaining its exact structural context.
Fields
§
occurrence: TermOccurrence<T>Actual term/root/parent/path/role whose literal access failed.
§
error: EBackend opening failure, before any lexical read.
Trait Implementations§
Source§impl<T, E: Display> Display for LiteralCursorError<T, E>
impl<T, E: Display> Display for LiteralCursorError<T, E>
Source§impl<T: Debug, E: Error + 'static> Error for LiteralCursorError<T, E>
impl<T: Debug, E: Error + 'static> Error for LiteralCursorError<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 LiteralCursorError<T, E>
impl<T, E> Freeze for LiteralCursorError<T, E>
impl<T, E> Move for LiteralCursorError<T, E>
impl<T, E> RefUnwindSafe for LiteralCursorError<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for LiteralCursorError<T, E>
impl<T, E> Sync for LiteralCursorError<T, E>
impl<T, E> Unpin for LiteralCursorError<T, E>
impl<T, E> UnsafeUnpin for LiteralCursorError<T, E>where
E: UnsafeUnpin,
T: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<TermPosition>: UnsafeUnpin,
impl<T, E> UnwindSafe for LiteralCursorError<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