pub enum QError {
IoError(Error),
InvalidLmp,
InvalidPaletteSize,
BadMagicBytes,
BadFileName,
FileNotFound,
WalkDirError(Error),
ColorNotInPalette,
}
Expand description
Error types.
Variants§
IoError(Error)
See std::io::Error
.
InvalidLmp
Invalid LMP file.
InvalidPaletteSize
Palette bigger than 256 colors
BadMagicBytes
Wrong magic bytes in the file header.
BadFileName
Invalid filename for a PAK file.
FileNotFound
Unable to find the given file in the PAK.
WalkDirError(Error)
See walkdir::Error
.
ColorNotInPalette
Palette does not contain given color.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QError
impl !RefUnwindSafe for QError
impl Send for QError
impl Sync for QError
impl Unpin for QError
impl !UnwindSafe for QError
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