pub struct AttributesList<'d, 'w> { /* private fields */ }Expand description
An AttributesList sets the attributes of an edge or node.
See the Attributes trait for more information on what fields can be set.
Trait Implementations§
Source§impl<'d, 'w> Attributes for AttributesList<'d, 'w>
impl<'d, 'w> Attributes for AttributesList<'d, 'w>
Source§fn set(&mut self, name: &str, value: &str, quote: bool) -> &mut Self
fn set(&mut self, name: &str, value: &str, quote: bool) -> &mut Self
Sets an attribute. See the Graphviz documentation
for a full list of available names and values.
Set the arguement
quote to true if the value should be written in quotes ", to escape
any special characters. Note that any quote in the string need to be escaped before calling.
This function does NOT check that name or value are valid DOT strings.Source§fn set_font(&mut self, label: &str) -> &mut Self
fn set_font(&mut self, label: &str) -> &mut Self
Set the name of the font family for label text
Source§fn set_html(&mut self, label: &str) -> &mut Self
fn set_html(&mut self, label: &str) -> &mut Self
Set arbitary html, useful for constructing more complex nodes
Source§fn set_label(&mut self, label: &str) -> &mut Self
fn set_label(&mut self, label: &str) -> &mut Self
Set the display label for a graph, node or edge
Source§fn set_head_label(&mut self, label: &str) -> &mut Self
fn set_head_label(&mut self, label: &str) -> &mut Self
Set the label to appear at the head of an edge
Source§fn set_tail_label(&mut self, label: &str) -> &mut Self
fn set_tail_label(&mut self, label: &str) -> &mut Self
Set the label to appear at the tail of an edge
Source§fn set_fill_color(&mut self, color: Color) -> &mut Self
fn set_fill_color(&mut self, color: Color) -> &mut Self
Set the color to fill the area with
Source§fn set_font_color(&mut self, color: Color) -> &mut Self
fn set_font_color(&mut self, color: Color) -> &mut Self
Set the color of the font used for text
Source§fn set_background_color(&mut self, color: Color) -> &mut Self
fn set_background_color(&mut self, color: Color) -> &mut Self
Set the background color
Source§fn set_shape(&mut self, shape: Shape) -> &mut Self
fn set_shape(&mut self, shape: Shape) -> &mut Self
Set the shape of a graph, subgraph, cluster or node
Source§fn set_arrow_head(&mut self, arrow_type: ArrowType) -> &mut Self
fn set_arrow_head(&mut self, arrow_type: ArrowType) -> &mut Self
Set type of arrow head for edge lines (the arrow at the destination)
Source§fn set_arrow_tail(&mut self, arrow_type: ArrowType) -> &mut Self
fn set_arrow_tail(&mut self, arrow_type: ArrowType) -> &mut Self
Set type of arrow tail for edge lines (the arrow at the source)
Source§fn set_pen_width(&mut self, width: f32) -> &mut Self
fn set_pen_width(&mut self, width: f32) -> &mut Self
Set the pen width for drawing lines
Source§fn set_arrow_size(&mut self, size: f32) -> &mut Self
fn set_arrow_size(&mut self, size: f32) -> &mut Self
Set the arrow size
Source§fn set_font_size(&mut self, size: f32) -> &mut Self
fn set_font_size(&mut self, size: f32) -> &mut Self
Set the font size
fn set_rank_direction(&mut self, rank_direction: RankDirection) -> &mut Self
Auto Trait Implementations§
impl<'d, 'w> Freeze for AttributesList<'d, 'w>
impl<'d, 'w> !RefUnwindSafe for AttributesList<'d, 'w>
impl<'d, 'w> !Send for AttributesList<'d, 'w>
impl<'d, 'w> !Sync for AttributesList<'d, 'w>
impl<'d, 'w> Unpin for AttributesList<'d, 'w>
impl<'d, 'w> !UnwindSafe for AttributesList<'d, 'w>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more