pub struct Error<E1, E2> {
pub cause: ErrorCause<E1, E2>,
pub location: Range<usize>,
}
Expand description
Description of an error that occurred during expansion
Fields§
§cause: ErrorCause<E1, E2>
Cause of the error
location: Range<usize>
Range of the substring in the evaluated expression string where the error occurred
Trait Implementations§
Source§impl<E1, E2> Error for Error<E1, E2>
impl<E1, E2> Error for Error<E1, E2>
1.30.0 · 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()
impl<E1: Eq, E2: Eq> Eq for Error<E1, E2>
impl<E1, E2> StructuralPartialEq for Error<E1, E2>
Auto Trait Implementations§
impl<E1, E2> Freeze for Error<E1, E2>
impl<E1, E2> RefUnwindSafe for Error<E1, E2>where
E1: RefUnwindSafe,
E2: RefUnwindSafe,
impl<E1, E2> Send for Error<E1, E2>
impl<E1, E2> Sync for Error<E1, E2>
impl<E1, E2> Unpin for Error<E1, E2>
impl<E1, E2> UnwindSafe for Error<E1, E2>where
E1: UnwindSafe,
E2: 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