pub enum Shape {
Rectangle,
Rounded,
Stadium,
Subroutine,
Cylinder,
Circle,
DoubleCircle,
Rhombus,
Hexagon,
}Expand description
The shape of a node, with the brackets Mermaid draws it with - Java’s nested enum
MermaidWriter.Shape, a type of the crate here, as Rust has no nested types.
Variants§
Rectangle
A rectangle, [...].
Rounded
A rectangle with rounded corners, (...).
Stadium
A stadium, ([...]).
Subroutine
A subroutine box, [[...]].
Cylinder
A cylinder, [(...)].
Circle
A circle, ((...)).
DoubleCircle
A double circle, (((...))).
Rhombus
A rhombus, {...}.
Hexagon
A hexagon, {{...}}.
Implementations§
Trait Implementations§
impl Copy for Shape
impl Eq for Shape
Source§impl Ord for Shape
impl Ord for Shape
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Shape
impl PartialOrd 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