pub enum ShapeGeometry {
Rectangle(RectangleGeometry),
Ellipse(EllipseGeometry),
Polystar(PolystarGeometry),
Path(PathGeometry),
}Expand description
A geometry alone, as a mask’s outline is.
Variants§
Rectangle(RectangleGeometry)
A rectangle, optionally with rounded corners.
Ellipse(EllipseGeometry)
An ellipse.
Polystar(PolystarGeometry)
A regular polygon or star.
Path(PathGeometry)
A Bezier path.
Implementations§
Source§impl ShapeGeometry
impl ShapeGeometry
Source§impl ShapeGeometry
impl ShapeGeometry
Sourcepub fn is_animated(&self) -> bool
pub fn is_animated(&self) -> bool
Whether the outline changes over time.
Trait Implementations§
Source§impl Clone for ShapeGeometry
impl Clone for ShapeGeometry
Source§impl Debug for ShapeGeometry
impl Debug for ShapeGeometry
Source§impl<'de> Deserialize<'de> for ShapeGeometry
impl<'de> Deserialize<'de> for ShapeGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShapeGeometry
impl PartialEq for ShapeGeometry
Source§impl Serialize for ShapeGeometry
impl Serialize for ShapeGeometry
impl StructuralPartialEq for ShapeGeometry
Auto Trait Implementations§
impl Freeze for ShapeGeometry
impl RefUnwindSafe for ShapeGeometry
impl Send for ShapeGeometry
impl Sync for ShapeGeometry
impl Unpin for ShapeGeometry
impl UnsafeUnpin for ShapeGeometry
impl UnwindSafe for ShapeGeometry
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