pub enum ShapeKind {
Path(Animated<VectorPath>),
Rect {
pos: Animated<DVec2>,
size: Animated<DVec2>,
rounded: Animated<f64>,
},
Ellipse {
pos: Animated<DVec2>,
size: Animated<DVec2>,
},
Star {
pos: Animated<DVec2>,
points: Animated<f64>,
inner_r: Animated<f64>,
outer_r: Animated<f64>,
roundness: Animated<f64>,
kind: StarKind,
},
Polygon {
pos: Animated<DVec2>,
points: Animated<f64>,
outer_r: Animated<f64>,
roundness: Animated<f64>,
},
CompoundPath(CompoundPath),
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShapeKind
impl<'de> Deserialize<'de> for ShapeKind
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
Auto Trait Implementations§
impl Freeze for ShapeKind
impl RefUnwindSafe for ShapeKind
impl Send for ShapeKind
impl Sync for ShapeKind
impl Unpin for ShapeKind
impl UnsafeUnpin for ShapeKind
impl UnwindSafe for ShapeKind
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