pub enum InputError<E> {
Resource {
range: Span,
cause: MemoryError,
},
Changed {
range: Span,
},
Contract {
range: Span,
},
Cause {
range: Span,
cause: E,
},
}Expand description
Failure at an original source range, without inventing format coordinates.
Variants§
Resource
Original source/current execution refusal.
Fields
§
cause: MemoryErrorPreserved work or capacity cause.
Changed
Identity, generation or length changed.
Contract
Invalid bounds, premature EOF or an impossible returned count.
Cause
Original opaque acquisition failure.
Trait Implementations§
Auto Trait Implementations§
impl<E> Forget for InputError<E>
impl<E> Freeze for InputError<E>where
E: Freeze,
impl<E> RefUnwindSafe for InputError<E>where
E: RefUnwindSafe,
impl<E> Send for InputError<E>where
E: Send,
impl<E> Sync for InputError<E>where
E: Sync,
impl<E> Unpin for InputError<E>where
E: Unpin,
impl<E> UnsafeUnpin for InputError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for InputError<E>where
E: UnwindSafe,
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