Trait oxidd_dump::dot::DotStyle

source ·
pub trait DotStyle<T: Tag> {
    // Provided method
    fn edge_style(no: usize, tag: T) -> (EdgeStyle, bool, Color) { ... }
}
Expand description

Styling attributes defined by the node type

Provided Methods§

source

fn edge_style(no: usize, tag: T) -> (EdgeStyle, bool, Color)

Get the style for the n-th outgoing edge, tagged with tag

Returns the edge style (solid/dashed/dotted), whether it is bold, and the color.

The default implementation distinguishes three kinds of edges (all non-bold and black):

  1. If the edge is tagged (i.e. tag is not the default value) then the edge is dotted.
  2. If the edge is untagged and the second edge (no == 1), then it is dashed
  3. Otherwise the edge is solid

Object Safety§

This trait is not object safe.

Implementors§