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

pub struct Graph<'a> {
    pub id: Option<String>,
    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<String>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

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

pub fn new(
    id: Option<String>,
    is_directed: bool,
    strict: bool,
    comment: Option<String>,
    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>>
) -> Self
[src]

pub fn graph_type(&self) -> &'static str[src]

pub fn edge_op(&self) -> &'static str[src]

Trait Implementations

impl<'a> Clone for Graph<'a>[src]

impl<'a> Debug for Graph<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Graph<'a>

impl<'a> Send for Graph<'a>

impl<'a> Sync for Graph<'a>

impl<'a> Unpin for Graph<'a>

impl<'a> UnwindSafe for Graph<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.