Enum shr_parser::SHRFileError
source · pub enum SHRFileError {
IOError(Error),
InvalidSignature,
InvalidVersion,
InvalidFile,
}
Expand description
Enumeration representing possible errors that can occur when handling SHR files.
Variants§
Trait Implementations§
source§impl Debug for SHRFileError
impl Debug for SHRFileError
source§impl Display for SHRFileError
impl Display for SHRFileError
Implementation for displaying SHRFileError enumeration values.
source§impl From<Error> for SHRFileError
impl From<Error> for SHRFileError
Implementation for converting io::Error values to SHRFileError enumeration values.
source§fn from(err: Error) -> SHRFileError
fn from(err: Error) -> SHRFileError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SHRFileError
impl !RefUnwindSafe for SHRFileError
impl Send for SHRFileError
impl Sync for SHRFileError
impl Unpin for SHRFileError
impl !UnwindSafe for SHRFileError
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