pub enum RasterBackendError {
Canvas(RasterError),
Dpi(f64),
Encode(EncodeError),
}Expand description
Why a raster canvas could not be created or encoded.
Variants§
Canvas(RasterError)
The canvas size is invalid (matplotlib caps each side below 2²³).
Dpi(f64)
The resolution is not a positive finite number.
Encode(EncodeError)
PNG encoding failed.
Trait Implementations§
Source§impl Debug for RasterBackendError
impl Debug for RasterBackendError
Source§impl Display for RasterBackendError
impl Display for RasterBackendError
Source§impl Error for RasterBackendError
impl Error for RasterBackendError
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()
Auto Trait Implementations§
impl Forget for RasterBackendError
impl Freeze for RasterBackendError
impl Move for RasterBackendError
impl RefUnwindSafe for RasterBackendError
impl Send for RasterBackendError
impl Sync for RasterBackendError
impl Unpin for RasterBackendError
impl UnsafeUnpin for RasterBackendError
impl UnwindSafe for RasterBackendError
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