pub enum ReadTokensError<E> {
IoError {
source: Error,
},
EndOfFile,
ParseError {
source: E,
line: String,
},
}
Expand description
An error returned from TokenReader::line
.
Variants§
Trait Implementations§
Source§impl<E: Debug> Debug for ReadTokensError<E>
impl<E: Debug> Debug for ReadTokensError<E>
Source§impl<E> Display for ReadTokensError<E>
impl<E> Display for ReadTokensError<E>
Source§impl<E> Error for ReadTokensError<E>
impl<E> Error for ReadTokensError<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()
Source§impl<E> From<ReadLineError> for ReadTokensError<E>
impl<E> From<ReadLineError> for ReadTokensError<E>
Source§fn from(value: ReadLineError) -> Self
fn from(value: ReadLineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for ReadTokensError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ReadTokensError<E>
impl<E> Send for ReadTokensError<E>where
E: Send,
impl<E> Sync for ReadTokensError<E>where
E: Sync,
impl<E> Unpin for ReadTokensError<E>where
E: Unpin,
impl<E> !UnwindSafe for ReadTokensError<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