[][src]Enum tabbycat::SubGraph

pub enum SubGraph<'a> {
    SubGraph {
        id: Option<Identity<'a>>,
        stmts: Box<StmtList<'a>>,
    },
    Cluster(Box<StmtList<'a>>),
}

A subgraph in the dot language

Variants

SubGraph

Fields of SubGraph

id: Option<Identity<'a>>stmts: Box<StmtList<'a>>
Cluster(Box<StmtList<'a>>)

Implementations

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

pub fn cluster(list: StmtList<'a>) -> Self[src]

create a cluster, for example you may need to following structure in your graph:

{A;B;}

pub fn subgraph(id: Option<Identity<'a>>, list: StmtList<'a>) -> Self[src]

create a subgraph, which will output something like:

subgraph G {
    A -> B;
}

Trait Implementations

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

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

impl<'a> Display for SubGraph<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SubGraph<'a>[src]

impl<'a> Send for SubGraph<'a>[src]

impl<'a> Sync for SubGraph<'a>[src]

impl<'a> Unpin for SubGraph<'a>[src]

impl<'a> UnwindSafe for SubGraph<'a>[src]

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> ToString for T where
    T: Display + ?Sized
[src]

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.