pub enum ErrorKind {
Syntax(Syntax),
Ambiguous(Syntax),
Limit(Limit),
Resource(MemoryError),
Unsupported(Unsupported),
Foreign,
}Expand description
Independent failure classes; processing causes cannot become syntax faults.
Variants§
Syntax(Syntax)
Unreadable syntax with its actual domain and range.
Ambiguous(Syntax)
Two incompatible readings; selecting the first would lose meaning.
Limit(Limit)
Caller-selected resource count exhausted before the operation.
Resource(MemoryError)
Actual shared allocator, capacity, or current/source work refusal.
Unsupported(Unsupported)
Required capability is explicitly unavailable.
Foreign
A caller mixed source/session/document identities.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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