Enum dot::ArrowShape
source · 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 moresource§impl Hash for ArrowShape
impl Hash for ArrowShape
source§impl PartialEq<ArrowShape> for ArrowShape
impl PartialEq<ArrowShape> for ArrowShape
source§fn eq(&self, other: &ArrowShape) -> bool
fn eq(&self, other: &ArrowShape) -> bool
self
and other
values to be equal, and is used
by ==
.