pub struct CanvasError {
pub width: u32,
pub height: u32,
pub scale: f32,
pub bytes: usize,
}Expand description
A canvas whose bytes don’t fit its size, or whose scale isn’t a positive number.
Fields§
§width: u32The canvas’s width in pixels.
height: u32The canvas’s height in pixels.
scale: f32The canvas’s scale.
bytes: usizeHow many bytes the canvas held.
Trait Implementations§
Source§impl Clone for CanvasError
impl Clone for CanvasError
impl Copy for CanvasError
Source§impl Debug for CanvasError
impl Debug for CanvasError
Source§impl Display for CanvasError
impl Display for CanvasError
Source§impl Error for CanvasError
impl Error for CanvasError
1.30.0 · 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 PartialEq for CanvasError
impl PartialEq for CanvasError
impl StructuralPartialEq for CanvasError
Auto Trait Implementations§
impl Forget for CanvasError
impl Freeze for CanvasError
impl Move for CanvasError
impl RefUnwindSafe for CanvasError
impl Send for CanvasError
impl Sync for CanvasError
impl Unpin for CanvasError
impl UnsafeUnpin for CanvasError
impl UnwindSafe for CanvasError
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