pub enum PresetShape {
Show 53 variants
Rectangle,
RoundedRectangle,
Ellipse,
Triangle,
RightTriangle,
Diamond,
Parallelogram,
Trapezoid,
Pentagon,
Hexagon,
Heptagon,
Octagon,
Decagon,
Dodecagon,
Star4,
Star5,
Star6,
Star8,
Star10,
Star12,
Line,
Plaque,
Teardrop,
HomePlate,
Chevron,
Pie,
Donut,
BlockArc,
NoSmoking,
RightArrow,
LeftArrow,
UpArrow,
DownArrow,
LeftRightArrow,
UpDownArrow,
BentArrow,
UturnArrow,
Heart,
Sun,
Moon,
SmileyFace,
Cube,
Can,
LightningBolt,
FoldedCorner,
Bevel,
Frame,
Arc,
Chord,
LeftBrace,
RightBrace,
BracePair,
Other(String),
}Expand description
A useful subset of ST_ShapeType’s ~185 preset shape names — the ones most commonly authored by
real tools (basic shapes, arrows, a handful of callouts/symbols). PresetShape::Other
preserves round-trip fidelity for any preset name not explicitly modeled here, the same “closed
enum + escape hatch” posture this workspace already uses for open-ended, large-but-finite value
sets (e.g. font family names) rather than exhaustively enumerating every value up front for a
feature not yet needed.
Variants§
Rectangle
RoundedRectangle
Ellipse
Triangle
RightTriangle
Diamond
Parallelogram
Trapezoid
Pentagon
Hexagon
Heptagon
Octagon
Decagon
Dodecagon
Star4
Star5
Star6
Star8
Star10
Star12
Line
Plaque
Teardrop
HomePlate
Chevron
Pie
Donut
BlockArc
NoSmoking
RightArrow
LeftArrow
UpArrow
DownArrow
LeftRightArrow
UpDownArrow
BentArrow
UturnArrow
Heart
Sun
Moon
SmileyFace
Cube
Can
LightningBolt
FoldedCorner
Bevel
Frame
Arc
Chord
LeftBrace
RightBrace
BracePair
Other(String)
Any ST_ShapeType token not covered by the variants above, kept verbatim (e.g.
"irregularSeal1", "mathDivide", "gear9"..).
Trait Implementations§
Source§impl Clone for PresetShape
impl Clone for PresetShape
Source§fn clone(&self) -> PresetShape
fn clone(&self) -> PresetShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresetShape
impl Debug for PresetShape
impl Eq for PresetShape
Source§impl PartialEq for PresetShape
impl PartialEq for PresetShape
impl StructuralPartialEq for PresetShape
Auto Trait Implementations§
impl Freeze for PresetShape
impl RefUnwindSafe for PresetShape
impl Send for PresetShape
impl Sync for PresetShape
impl Unpin for PresetShape
impl UnsafeUnpin for PresetShape
impl UnwindSafe for PresetShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.