pub enum ReadLineError {
IoError {
source: Error,
},
EndOfFile,
}
Expand description
An error returned from TokenReader::line_raw
.
Variants§
Trait Implementations§
Source§impl Debug for ReadLineError
impl Debug for ReadLineError
Source§impl Display for ReadLineError
impl Display for ReadLineError
Source§impl Error for ReadLineError
impl Error for ReadLineError
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 Freeze for ReadLineError
impl !RefUnwindSafe for ReadLineError
impl Send for ReadLineError
impl Sync for ReadLineError
impl Unpin for ReadLineError
impl !UnwindSafe for ReadLineError
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