enum EncoderError {
WidthInvalid(u32),
HeightInvalid(u32),
}
Expand description
Errors that can occur during encoding and saving of a TGA image.
Variants§
Trait Implementations§
source§impl Clone for EncoderError
impl Clone for EncoderError
source§fn clone(&self) -> EncoderError
fn clone(&self) -> EncoderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EncoderError
impl Debug for EncoderError
source§impl Display for EncoderError
impl Display for EncoderError
source§impl Error for EncoderError
impl Error for EncoderError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<EncoderError> for ImageError
impl From<EncoderError> for ImageError
source§fn from(e: EncoderError) -> ImageError
fn from(e: EncoderError) -> ImageError
Converts to this type from the input type.
source§impl Hash for EncoderError
impl Hash for EncoderError
source§impl Ord for EncoderError
impl Ord for EncoderError
source§fn cmp(&self, other: &EncoderError) -> Ordering
fn cmp(&self, other: &EncoderError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EncoderError
impl PartialEq for EncoderError
source§fn eq(&self, other: &EncoderError) -> bool
fn eq(&self, other: &EncoderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EncoderError
impl PartialOrd for EncoderError
source§fn partial_cmp(&self, other: &EncoderError) -> Option<Ordering>
fn partial_cmp(&self, other: &EncoderError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EncoderError
impl Eq for EncoderError
impl StructuralPartialEq for EncoderError
Auto Trait Implementations§
impl Freeze for EncoderError
impl RefUnwindSafe for EncoderError
impl Send for EncoderError
impl Sync for EncoderError
impl Unpin for EncoderError
impl UnwindSafe for EncoderError
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