pub enum Geom {
Preset {
name: String,
adj: Vec<f64>,
},
Custom {
paths: Vec<CustomPath>,
},
}Expand description
Shape geometry: a preset name with adjust values, or a custom path.
Variants§
Preset
Custom
Custom geometry: sub-paths in their own coordinate space (w, h) scaled to the shape.
Fields
§
paths: Vec<CustomPath>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Geom
impl<'de> Deserialize<'de> for Geom
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
impl StructuralPartialEq for Geom
Auto Trait Implementations§
impl Freeze for Geom
impl RefUnwindSafe for Geom
impl Send for Geom
impl Sync for Geom
impl Unpin for Geom
impl UnsafeUnpin for Geom
impl UnwindSafe for Geom
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