pub struct Error<L> {
pub expects: Expects,
pub position: Range<L>,
}Expand description
Errors while parsing streams.
Fields§
§expects: ExpectsExpected tokens.
position: Range<L>The position where the error has occured.
Implementations§
Trait Implementations§
Source§impl<L: Debug> Error for Error<L>
Available on crate feature std only.
impl<L: Debug> Error for Error<L>
Available on crate feature
std only.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<L: Eq> Eq for Error<L>
impl<L> StructuralPartialEq for Error<L>
Auto Trait Implementations§
impl<L> Freeze for Error<L>where
L: Freeze,
impl<L> RefUnwindSafe for Error<L>where
L: RefUnwindSafe,
impl<L> Send for Error<L>where
L: Send,
impl<L> Sync for Error<L>where
L: Sync,
impl<L> Unpin for Error<L>where
L: Unpin,
impl<L> UnsafeUnpin for Error<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for Error<L>where
L: 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