plotters_conrod/
error.rs

1// plotters-conrod
2//
3// Conrod backend for Plotters
4// Copyright: 2020, Valerian Saliou <valerian@valeriansaliou.name>
5// License: MIT
6
7#[derive(Debug)]
8/// Indicates that some error occured within the Conrod backend
9pub enum ConrodBackendError {
10    /// The parent widget position could not be acquired, is the parent widget drawn in Conrod?
11    NoParentPosition,
12}
13
14impl std::fmt::Display for ConrodBackendError {
15    fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
16        write!(fmt, "{:?}", self)
17    }
18}
19
20impl std::error::Error for ConrodBackendError {}