#[non_exhaustive]pub enum MarkerError {
Show 14 variants
InvalidSize {
size: u32,
},
InvalidAspectRatio {
value: f64,
},
InvalidCornerRatio {
value: f64,
},
InvalidPolygonSides {
sides: u8,
},
InvalidStarPoints {
points: u8,
},
InvalidStarInnerRatio {
value: f64,
},
InvalidAsteriskArms {
arms: u8,
},
NonFiniteRotation {
value: f64,
},
FillUnsupportedForStrokeOnly {
shape: MarkerShape,
},
EmptyMarkerWithoutEdge,
EmptyPartition,
TooManySlices {
count: usize,
maximum: usize,
},
InvalidSliceCount {
expected: usize,
actual: usize,
},
InvalidSliceWeight {
index: usize,
weight: f64,
},
}Expand description
Marker validation error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSize
InvalidAspectRatio
InvalidCornerRatio
InvalidPolygonSides
InvalidStarPoints
InvalidStarInnerRatio
InvalidAsteriskArms
NonFiniteRotation
FillUnsupportedForStrokeOnly
Fields
§
shape: MarkerShapeEmptyMarkerWithoutEdge
EmptyPartition
TooManySlices
InvalidSliceCount
InvalidSliceWeight
Trait Implementations§
Source§impl Clone for MarkerError
impl Clone for MarkerError
Source§impl Debug for MarkerError
impl Debug for MarkerError
Source§impl Display for MarkerError
impl Display for MarkerError
Source§impl Error for MarkerError
impl Error for MarkerError
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 PartialEq for MarkerError
impl PartialEq for MarkerError
impl StructuralPartialEq for MarkerError
Auto Trait Implementations§
impl Freeze for MarkerError
impl RefUnwindSafe for MarkerError
impl Send for MarkerError
impl Sync for MarkerError
impl Unpin for MarkerError
impl UnsafeUnpin for MarkerError
impl UnwindSafe for MarkerError
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