pub enum Shape {
Everything,
Circle(CircleParams),
Polygon(PolygonParams),
MultipleCircles(Vec<CircleParams>),
}
Variants§
Everything
Circle(CircleParams)
Polygon(PolygonParams)
MultipleCircles(Vec<CircleParams>)
multiple individual circles
Trait Implementations§
source§impl<'de> Deserialize<'de> for Shape
impl<'de> Deserialize<'de> for Shape
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 Shape
impl PartialEq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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