pub enum PixReadMemError {
NullPtr,
ImageSizeConversion(TryFromIntError),
}
Expand description
Error returned by Pix::read_mem
Variants§
NullPtr
ImageSizeConversion(TryFromIntError)
Trait Implementations§
source§impl Debug for PixReadMemError
impl Debug for PixReadMemError
source§impl Display for PixReadMemError
impl Display for PixReadMemError
source§impl Error for PixReadMemError
impl Error for PixReadMemError
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<Infallible> for PixReadMemError
impl From<Infallible> for PixReadMemError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for PixReadMemError
impl From<TryFromIntError> for PixReadMemError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq for PixReadMemError
impl PartialEq for PixReadMemError
source§fn eq(&self, other: &PixReadMemError) -> bool
fn eq(&self, other: &PixReadMemError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PixReadMemError
Auto Trait Implementations§
impl Freeze for PixReadMemError
impl RefUnwindSafe for PixReadMemError
impl Send for PixReadMemError
impl Sync for PixReadMemError
impl Unpin for PixReadMemError
impl UnwindSafe for PixReadMemError
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