pub enum GeneratedShape {
Rectangle {
corner_radius: f32,
},
Ellipse,
}Expand description
The outline of a Generator::Shape.
Variants§
Rectangle
A rectangle, optionally with rounded corners.
Fields
Ellipse
The ellipse inscribed in the size.
Trait Implementations§
Source§impl Clone for GeneratedShape
impl Clone for GeneratedShape
impl Copy for GeneratedShape
Source§impl Debug for GeneratedShape
impl Debug for GeneratedShape
Source§impl<'de> Deserialize<'de> for GeneratedShape
impl<'de> Deserialize<'de> for GeneratedShape
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 GeneratedShape
impl PartialEq for GeneratedShape
Source§impl Serialize for GeneratedShape
impl Serialize for GeneratedShape
impl StructuralPartialEq for GeneratedShape
Auto Trait Implementations§
impl Freeze for GeneratedShape
impl RefUnwindSafe for GeneratedShape
impl Send for GeneratedShape
impl Sync for GeneratedShape
impl Unpin for GeneratedShape
impl UnsafeUnpin for GeneratedShape
impl UnwindSafe for GeneratedShape
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