pub enum FragmentBytesToImageError {
ZeroSizedImage,
CantCreateImage,
UnknownColor(u8, u16),
NoFragmentBytes(usize),
CantDecodeFragmentBytes(DecodeFragmentBytesError),
}
Variants§
ZeroSizedImage
CantCreateImage
UnknownColor(u8, u16)
NoFragmentBytes(usize)
CantDecodeFragmentBytes(DecodeFragmentBytesError)
Trait Implementations§
Source§impl Debug for FragmentBytesToImageError
impl Debug for FragmentBytesToImageError
Source§impl Display for FragmentBytesToImageError
impl Display for FragmentBytesToImageError
Source§impl Error for FragmentBytesToImageError
impl Error for FragmentBytesToImageError
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<DecodeFragmentBytesError> for FragmentBytesToImageError
impl From<DecodeFragmentBytesError> for FragmentBytesToImageError
Source§fn from(source: DecodeFragmentBytesError) -> Self
fn from(source: DecodeFragmentBytesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FragmentBytesToImageError
impl RefUnwindSafe for FragmentBytesToImageError
impl Send for FragmentBytesToImageError
impl Sync for FragmentBytesToImageError
impl Unpin for FragmentBytesToImageError
impl UnwindSafe for FragmentBytesToImageError
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