pub enum Shape {
Show 14 variants
Rect,
Rounded,
Stadium,
Diamond,
Circle,
DoubleCircle,
Cylinder,
Subroutine,
Hexagon,
Parallelogram,
ParallelogramAlt,
StateStart,
StateEnd,
ForkBar,
}Expand description
Node shape.
Variants§
Rect
A[text] — rectangle.
Rounded
A(text) — rounded corners.
Stadium
A([text]) — stadium / pill.
Diamond
A{text} — diamond (decision).
Circle
A((text)) — circle.
DoubleCircle
A(((text))) — double circle (terminal).
Cylinder
A[(text)] — cylinder (database).
Subroutine
A[[text]] — subroutine.
Hexagon
A{{text}} — hexagon.
Parallelogram
A[/text/] — parallelogram.
ParallelogramAlt
A[\text\] — parallelogram, slanted the other way.
StateStart
stateDiagram [*] as a transition source — the initial
pseudostate (small filled dot).
StateEnd
stateDiagram [*] as a transition target — the final
pseudostate (ring with a filled core).
ForkBar
stateDiagram <<fork>> / <<join>> — a thin filled bar.
Trait Implementations§
impl Copy for Shape
impl Eq 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 UnsafeUnpin 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