pub enum ArrowShape {
NoArrow,
Normal(Fill, Side),
Box(Fill, Side),
Crow(Side),
Curve(Side),
ICurve(Fill, Side),
Diamond(Fill, Side),
Dot(Fill),
Inv(Fill, Side),
Tee(Side),
Vee(Side),
}
Expand description
This enumeration represents all possible arrow edge as defined in graphviz documentation.
Variants§
NoArrow
No arrow will be displayed
Normal(Fill, Side)
Arrow that ends in a triangle. Basically a normal arrow. NOTE: there is error in official documentation, this supports both fill and side clipping
Box(Fill, Side)
Arrow ending in a small square box
Crow(Side)
Arrow ending in a three branching lines also called crow’s foot
Curve(Side)
Arrow ending in a curve
ICurve(Fill, Side)
Arrow ending in an inverted curve
Diamond(Fill, Side)
Arrow ending in an diamond shaped rectangular shape.
Dot(Fill)
Arrow ending in a circle.
Inv(Fill, Side)
Arrow ending in an inverted triangle.
Tee(Side)
Arrow ending with a T shaped arrow.
Vee(Side)
Arrow ending with a V shaped arrow.
Implementations§
Source§impl ArrowShape
impl ArrowShape
Sourcepub fn none() -> ArrowShape
pub fn none() -> ArrowShape
Constructor which returns no arrow.
Sourcepub fn normal() -> ArrowShape
pub fn normal() -> ArrowShape
Constructor which returns normal arrow.
Sourcepub fn boxed() -> ArrowShape
pub fn boxed() -> ArrowShape
Constructor which returns a regular box arrow.
Sourcepub fn crow() -> ArrowShape
pub fn crow() -> ArrowShape
Constructor which returns a regular crow arrow.
Sourcepub fn curve() -> ArrowShape
pub fn curve() -> ArrowShape
Constructor which returns a regular curve arrow.
Sourcepub fn icurve() -> ArrowShape
pub fn icurve() -> ArrowShape
Constructor which returns an inverted curve arrow.
Sourcepub fn diamond() -> ArrowShape
pub fn diamond() -> ArrowShape
Constructor which returns a diamond arrow.
Sourcepub fn dot() -> ArrowShape
pub fn dot() -> ArrowShape
Constructor which returns a circle shaped arrow.
Sourcepub fn inv() -> ArrowShape
pub fn inv() -> ArrowShape
Constructor which returns an inverted triangle arrow.
Sourcepub fn tee() -> ArrowShape
pub fn tee() -> ArrowShape
Constructor which returns a T shaped arrow.
Sourcepub fn vee() -> ArrowShape
pub fn vee() -> ArrowShape
Constructor which returns a V shaped arrow.
Sourcepub fn to_dot_string(&self) -> String
pub fn to_dot_string(&self) -> String
Function which renders given ArrowShape into a String for displaying.
Trait Implementations§
Source§impl Clone for ArrowShape
impl Clone for ArrowShape
Source§fn clone(&self) -> ArrowShape
fn clone(&self) -> ArrowShape
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more