pub enum SectionReaderError<'err> {
UnexpectedToken(usize, Token<'err>, &'static str),
UnknownToken(u16),
TextReaderError(ReaderError),
BinaryReaderError(ReaderError),
}
Expand description
An error that occurred while reading sections from a tape.
Variants§
UnexpectedToken(usize, Token<'err>, &'static str)
An unexpected token was encountered.
UnknownToken(u16)
An unknown token was encountered.
TextReaderError(ReaderError)
BinaryReaderError(ReaderError)
Trait Implementations§
Source§impl<'err> Debug for SectionReaderError<'err>
impl<'err> Debug for SectionReaderError<'err>
Source§impl<'err> Display for SectionReaderError<'err>
impl<'err> Display for SectionReaderError<'err>
Source§impl<'err> Error for SectionReaderError<'err>
impl<'err> Error for SectionReaderError<'err>
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<'err> From<ReaderError> for SectionReaderError<'err>
impl<'err> From<ReaderError> for SectionReaderError<'err>
Source§impl<'err> From<ReaderError> for SectionReaderError<'err>
impl<'err> From<ReaderError> for SectionReaderError<'err>
Source§impl<'a, 'b: 'a> From<SectionReaderError<'b>> for ParsingError
impl<'a, 'b: 'a> From<SectionReaderError<'b>> for ParsingError
Source§fn from(value: SectionReaderError<'b>) -> Self
fn from(value: SectionReaderError<'b>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'err> Freeze for SectionReaderError<'err>
impl<'err> !RefUnwindSafe for SectionReaderError<'err>
impl<'err> Send for SectionReaderError<'err>
impl<'err> Sync for SectionReaderError<'err>
impl<'err> Unpin for SectionReaderError<'err>
impl<'err> !UnwindSafe for SectionReaderError<'err>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more