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