Struct dotavious::dot::EdgeBuilder [−][src]
Fields
source: String
source_port_position: Option<PortPosition>
target: String
target_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]
source: S,
source_port_position: PortPosition,
target: T,
target_port_position: PortPosition
) -> Self
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]
&mut self,
key: S,
value: AttributeText<'a>
) -> &mut Self
Add an attribute to the edge.
pub fn add_attributes(
&'a mut self,
attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
[src]
&'a mut self,
attributes: HashMap<String, AttributeText<'a>>
) -> &mut Self
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]
fn add_attribute<S: Into<String>>(
&mut self,
key: S,
value: AttributeText<'a>
) -> &mut Self
[src]
&mut self,
key: S,
value: AttributeText<'a>
) -> &mut Self
fn get_attributes_mut(&mut self) -> &mut IndexMap<String, AttributeText<'a>>
[src]
fn add_validation_error(&mut self, field: &'static str, message: &'static str)
[src]
fn arrow_head(&mut self, arrowhead: ArrowType) -> &mut Self
[src]
fn arrow_size(&mut self, arrow_size: f32) -> &mut Self
[src]
fn arrow_tail(&mut self, arrow_tail: ArrowType) -> &mut Self
[src]
fn class(&mut self, class: String) -> &mut Self
[src]
fn color(&mut self, color: Color<'a>) -> &mut Self
[src]
fn color_with_colorlist(&mut self, color: ColorList<'a>) -> &mut Self
[src]
fn color_scheme(&mut self, color_scheme: String) -> &mut Self
[src]
fn comment(&mut self, comment: String) -> &mut Self
[src]
fn constraint(&mut self, constraint: bool) -> &mut Self
[src]
fn decorate(&mut self, decorate: bool) -> &mut Self
[src]
fn dir(&mut self, dir: Direction) -> &mut Self
[src]
fn edge_target(&mut self, edge_target: String) -> &mut Self
[src]
fn edge_tooltip(&mut self, edge_tooltip: String) -> &mut Self
[src]
fn edge_url(&mut self, edge_url: String) -> &mut Self
[src]
fn fill_color(&mut self, fill_color: Color<'a>) -> &mut Self
[src]
fn fill_color_with_colorlist(&mut self, fill_color: ColorList<'a>) -> &mut Self
[src]
fn font_color(&mut self, font_color: Color<'a>) -> &mut Self
[src]
fn font_name(&mut self, font_name: String) -> &mut Self
[src]
fn font_size(&mut self, font_size: f32) -> &mut Self
[src]
fn head_lp(&mut self, head_lp: Point) -> &mut Self
[src]
fn head_clip(&mut self, head_clip: bool) -> &mut Self
[src]
fn head_label(&mut self, head_label: String) -> &mut Self
[src]
fn head_port(&mut self, head_port: PortPosition) -> &mut Self
[src]
fn head_target(&mut self, head_target: String) -> &mut Self
[src]
fn head_tooltip(&mut self, head_tooltip: String) -> &mut Self
[src]
fn head_url(&mut self, head_url: String) -> &mut Self
[src]
fn label(&mut self, label: String) -> &mut Self
[src]
fn label_angle(&mut self, label_angle: f32) -> &mut Self
[src]
fn label_distance(&mut self, label_distance: f32) -> &mut Self
[src]
fn label_float(&mut self, label_float: bool) -> &mut Self
[src]
fn label_font_color(&mut self, label_font_color: Color<'a>) -> &mut Self
[src]
fn label_font_name(&mut self, label_font_name: String) -> &mut Self
[src]
fn label_font_size(&mut self, label_font_size: f32) -> &mut Self
[src]
fn label_target(&mut self, label_target: String) -> &mut Self
[src]
fn label_tooltip(&mut self, label_tooltip: String) -> &mut Self
[src]
fn label_url(&mut self, label_url: String) -> &mut Self
[src]
fn layer(&mut self, layer: String) -> &mut Self
[src]
fn lhead(&mut self, lhead: String) -> &mut Self
[src]
fn label_position(&mut self, lp: Point) -> &mut Self
[src]
fn ltail(&mut self, ltail: String) -> &mut Self
[src]
fn min_len(&mut self, min_len: u32) -> &mut Self
[src]
fn no_justify(&mut self, no_justify: bool) -> &mut Self
[src]
fn pen_width(&mut self, pen_width: f32) -> &mut Self
[src]
fn pos(&mut self, pos: Point) -> &mut Self
[src]
fn same_head(&mut self, same_head: String) -> &mut Self
[src]
fn same_tail(&mut self, same_tail: String) -> &mut Self
[src]
fn show_boxes(&mut self, show_boxes: u32) -> &mut Self
[src]
fn style(&mut self, style: EdgeStyle) -> &mut Self
[src]
fn tail_lp(&mut self, tail_lp: Point) -> &mut Self
[src]
fn tail_clip(&mut self, tail_clip: bool) -> &mut Self
[src]
fn tail_label(&mut self, tail_label: String) -> &mut Self
[src]
fn tail_port(&mut self, tail_port: PortPosition) -> &mut Self
[src]
fn tail_target(&mut self, tail_target: String) -> &mut Self
[src]
fn tail_tooltip(&mut self, tail_tooltip: String) -> &mut Self
[src]
fn tail_url(&mut self, tail_url: String) -> &mut Self
[src]
fn target(&mut self, target: String) -> &mut Self
[src]
fn tooltip(&mut self, tooltip: String) -> &mut Self
[src]
fn url(&mut self, url: String) -> &mut Self
[src]
fn weight(&mut self, weight: u32) -> &mut Self
[src]
fn xlabel(&mut self, xlabel: String) -> &mut Self
[src]
fn xlp(&mut self, xlp: Point) -> &mut Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,