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

source

pub fn none() -> ArrowShape

Constructor which returns no arrow.

source

pub fn normal() -> ArrowShape

Constructor which returns normal arrow.

source

pub fn boxed() -> ArrowShape

Constructor which returns a regular box arrow.

source

pub fn crow() -> ArrowShape

Constructor which returns a regular crow arrow.

source

pub fn curve() -> ArrowShape

Constructor which returns a regular curve arrow.

source

pub fn icurve() -> ArrowShape

Constructor which returns an inverted curve arrow.

source

pub fn diamond() -> ArrowShape

Constructor which returns a diamond arrow.

source

pub fn dot() -> ArrowShape

Constructor which returns a circle shaped arrow.

source

pub fn inv() -> ArrowShape

Constructor which returns an inverted triangle arrow.

source

pub fn tee() -> ArrowShape

Constructor which returns a T shaped arrow.

source

pub fn vee() -> ArrowShape

Constructor which returns a V shaped arrow.

source

pub fn to_dot_string(&self) -> String

Function which renders given ArrowShape into a String for displaying.

Trait Implementations§

source§

impl Clone for ArrowShape

source§

fn clone(&self) -> ArrowShape

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Hash for ArrowShape

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<ArrowShape> for ArrowShape

source§

fn eq(&self, other: &ArrowShape) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ArrowShape

source§

impl Eq for ArrowShape

source§

impl StructuralEq for ArrowShape

source§

impl StructuralPartialEq for ArrowShape

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.