pub enum SectionError {
ConversionError(ConversionError),
ScalarError(ScalarError),
UnknownToken(u16),
TapeError(TapeError),
DecodingError(FromUtf8Error),
}
Expand description
An error that occured while processing a specific section
Variants§
ConversionError(ConversionError)
An error occured while converting a value
ScalarError(ScalarError)
An error occured while parsing a scalar
UnknownToken(u16)
An unknown token was encountered
TapeError(TapeError)
An error occured while reading from the tape
DecodingError(FromUtf8Error)
An error occured while decoding bytes
Trait Implementations§
Source§impl Debug for SectionError
impl Debug for SectionError
Source§impl Display for SectionError
impl Display for SectionError
Source§impl Error for SectionError
impl Error for SectionError
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 From<ConversionError> for SectionError
impl From<ConversionError> for SectionError
Source§fn from(value: ConversionError) -> Self
fn from(value: ConversionError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for SectionError
impl From<FromUtf8Error> for SectionError
Source§fn from(value: FromUtf8Error) -> Self
fn from(value: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for SectionError
impl From<ParseIntError> for SectionError
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ReaderError> for SectionError
impl From<ReaderError> for SectionError
Source§impl From<ReaderError> for SectionError
impl From<ReaderError> for SectionError
Source§impl From<ScalarError> for SectionError
impl From<ScalarError> for SectionError
Source§impl From<SectionError> for ParsingError
impl From<SectionError> for ParsingError
Source§fn from(value: SectionError) -> Self
fn from(value: SectionError) -> Self
Converts to this type from the input type.
Source§impl From<TapeError> for SectionError
impl From<TapeError> for SectionError
Auto Trait Implementations§
impl Freeze for SectionError
impl !RefUnwindSafe for SectionError
impl !Send for SectionError
impl !Sync for SectionError
impl Unpin for SectionError
impl !UnwindSafe for SectionError
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