#[non_exhaustive]pub enum ShapeProblem {
TooManyItems,
TooDeep,
PathTooLarge,
InvalidDash,
InvalidKeyframes,
OutOfRange,
PathKeyframesDiffer,
PaintKeyframesDiffer,
}Expand description
Why a content tree or a mask outline is invalid.
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.
TooManyItems
More than MAX_SHAPE_ITEMS items.
TooDeep
Groups nested deeper than MAX_SHAPE_DEPTH.
PathTooLarge
A path with more than MAX_PATH_SUBPATHS subpaths or
MAX_PATH_VERTICES vertices.
InvalidDash
A dash pattern with no entries, more than MAX_DASH_ENTRIES, or
only zeros.
InvalidKeyframes
Keyframes that are empty, out of order, or have an unusable curve.
OutOfRange
A value that is not finite or outside its range.
PathKeyframesDiffer
Path keyframes that differ in subpath count, closing, or vertex count.
PaintKeyframesDiffer
Paint keyframes that differ in kind, stop count, or spread.
Trait Implementations§
Source§impl Clone for ShapeProblem
impl Clone for ShapeProblem
impl Copy for ShapeProblem
Source§impl Debug for ShapeProblem
impl Debug for ShapeProblem
Source§impl Display for ShapeProblem
impl Display for ShapeProblem
impl Eq for ShapeProblem
Source§impl PartialEq for ShapeProblem
impl PartialEq for ShapeProblem
impl StructuralPartialEq for ShapeProblem
Auto Trait Implementations§
impl Freeze for ShapeProblem
impl RefUnwindSafe for ShapeProblem
impl Send for ShapeProblem
impl Sync for ShapeProblem
impl Unpin for ShapeProblem
impl UnsafeUnpin for ShapeProblem
impl UnwindSafe for ShapeProblem
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