pub enum Error {
Output(IOError),
Input(IOError),
BadBitDepth(u8),
Color(Error),
CustomPaletteIncompatibleWithDepth,
}
Handling of runtime errors in main.
An error saving an image from file.
A bit depth that’s not in the range 0..8
The user has specified both [color::Mode::CustomPalette] and the bit depth Opt
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
🔬 This is a nightly-only experimental API. (backtrace
)
Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T> Pointable for T
The alignment of pointer.
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
Initializes a with the given initializer. Read more
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
Mutably dereferences the given pointer. Read more
pub unsafe fn drop(ptr: usize)
Drops the object pointed to by the given pointer. Read more
Converts the given value to a String
. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.