Struct dotavious::dot::Graph[][src]

pub struct Graph<'a> {
    pub id: Option<AttributeText<'a>>,
    pub is_directed: bool,
    pub strict: bool,
    pub comment: Option<String>,
    pub graph_attributes: IndexMap<String, AttributeText<'a>>,
    pub node_attributes: IndexMap<String, AttributeText<'a>>,
    pub edge_attributes: IndexMap<String, AttributeText<'a>>,
    pub sub_graphs: Vec<SubGraph<'a>>,
    pub nodes: Vec<Node<'a>>,
    pub edges: Vec<Edge<'a>>,
}

Fields

id: Option<AttributeText<'a>>is_directed: boolstrict: boolcomment: Option<String>

Comment added to the first line of the source.

graph_attributes: IndexMap<String, AttributeText<'a>>node_attributes: IndexMap<String, AttributeText<'a>>edge_attributes: IndexMap<String, AttributeText<'a>>sub_graphs: Vec<SubGraph<'a>>nodes: Vec<Node<'a>>edges: Vec<Edge<'a>>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.