pub enum ChartError {
Xml(OxmlError),
ShapeProperties(ShapePropertiesError),
Text(TextError),
UnexpectedElement(String),
MissingElement(String),
DuplicateElement(String),
InvalidAttribute {
element: String,
attribute: String,
value: String,
},
InvalidValue {
element: String,
value: String,
},
}Expand description
Errors produced while reading or writing the implemented ChartML core.
Variants§
Xml(OxmlError)
ShapeProperties(ShapePropertiesError)
Text(TextError)
UnexpectedElement(String)
MissingElement(String)
DuplicateElement(String)
InvalidAttribute
InvalidValue
Trait Implementations§
Source§impl Debug for ChartError
impl Debug for ChartError
Source§impl Display for ChartError
impl Display for ChartError
Source§impl Error for ChartError
impl Error for ChartError
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 From<OxmlError> for ChartError
impl From<OxmlError> for ChartError
Source§impl From<ShapePropertiesError> for ChartError
impl From<ShapePropertiesError> for ChartError
Source§fn from(error: ShapePropertiesError) -> Self
fn from(error: ShapePropertiesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ChartError
impl !UnwindSafe for ChartError
impl Freeze for ChartError
impl Send for ChartError
impl Sync for ChartError
impl Unpin for ChartError
impl UnsafeUnpin for ChartError
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