pub struct DrawingError(pub String);Expand description
Used to catch errors related to plotting
Tuple Fields§
§0: StringError message associated with DrawingError error type.
Trait Implementations§
Source§impl Clone for DrawingError
impl Clone for DrawingError
Source§fn clone(&self) -> DrawingError
fn clone(&self) -> DrawingError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DrawingError
impl Debug for DrawingError
Source§impl Display for DrawingError
impl Display for DrawingError
Source§impl Error for DrawingError
impl Error for DrawingError
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<E> From<DrawingAreaErrorKind<E>> for DrawingError
Available on crate feature plotters only.
impl<E> From<DrawingAreaErrorKind<E>> for DrawingError
Available on crate feature
plotters only.Source§fn from(drawing_error: DrawingAreaErrorKind<E>) -> DrawingError
fn from(drawing_error: DrawingAreaErrorKind<E>) -> DrawingError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DrawingError
impl RefUnwindSafe for DrawingError
impl Send for DrawingError
impl Sync for DrawingError
impl Unpin for DrawingError
impl UnwindSafe for DrawingError
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