pub enum StyleReferenceError {
Xml(OxmlError),
Color(ColorError),
UnexpectedElement(String),
MissingAttribute {
element: String,
attribute: String,
},
InvalidAttribute {
element: String,
attribute: String,
value: String,
},
NotFillReference,
}Expand description
Errors produced while parsing, writing, or classifying style references.
Variants§
Xml(OxmlError)
Color(ColorError)
UnexpectedElement(String)
MissingAttribute
InvalidAttribute
NotFillReference
Trait Implementations§
Source§impl Debug for StyleReferenceError
impl Debug for StyleReferenceError
Source§impl Display for StyleReferenceError
impl Display for StyleReferenceError
Source§impl Error for StyleReferenceError
impl Error for StyleReferenceError
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<ColorError> for StyleReferenceError
impl From<ColorError> for StyleReferenceError
Source§fn from(error: ColorError) -> Self
fn from(error: ColorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StyleReferenceError
impl !UnwindSafe for StyleReferenceError
impl Freeze for StyleReferenceError
impl Send for StyleReferenceError
impl Sync for StyleReferenceError
impl Unpin for StyleReferenceError
impl UnsafeUnpin for StyleReferenceError
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