Struct dotavious::dot::EdgeBuilder[][src]

pub struct EdgeBuilder<'a> {
    pub source: String,
    pub source_port_position: Option<PortPosition>,
    pub target: String,
    pub target_port_position: Option<PortPosition>,
    // some fields omitted
}

Fields

source: Stringsource_port_position: Option<PortPosition>target: Stringtarget_port_position: Option<PortPosition>

Implementations

impl<'a> EdgeBuilder<'a>[src]

pub fn new<S: Into<String>, T: Into<String>>(source: S, target: T) -> Self[src]

pub fn new_with_port_position<S: Into<String>, T: Into<String>>(
    source: S,
    source_port_position: PortPosition,
    target: T,
    target_port_position: PortPosition
) -> Self
[src]

pub fn source_port_position(&mut self, port_position: PortPosition) -> &mut Self[src]

pub fn target_port_position(&mut self, port_position: PortPosition) -> &mut Self[src]

pub fn add_attribute<S: Into<String>>(
    &mut self,
    key: S,
    value: AttributeText<'a>
) -> &mut Self
[src]

Add an attribute to the edge.

pub fn add_attributes(
    &'a mut self,
    attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
[src]

Add multiple attributes to the edge.

pub fn build(&self) -> ValidationResult<Edge<'a>>[src]

pub fn build_ignore_validation(&self) -> Edge<'a>[src]

Trait Implementations

impl<'a> EdgeAttributes<'a> for EdgeBuilder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for EdgeBuilder<'a>

impl<'a> Send for EdgeBuilder<'a>

impl<'a> Sync for EdgeBuilder<'a>

impl<'a> Unpin for EdgeBuilder<'a>

impl<'a> UnwindSafe for EdgeBuilder<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.