[][src]Struct tabbycat::StmtList

pub struct StmtList<'a>(_);

The list of statements, including:

  • node declaration
  • edge declaration
  • subgraph declaration
  • global attributes

Implementations

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

pub fn new() -> Self[src]

Create a new statement list

pub fn add(self, stmt: Stmt<'a>) -> Self[src]

Add a statement

pub fn extend<I: IntoIterator<Item = Stmt<'a>>>(self, iter: I) -> Self[src]

Append a list a statements

pub fn add_node(
    self,
    id: Identity<'a>,
    port: Option<Port<'a>>,
    attr: Option<AttrList<'a>>
) -> Self
[src]

Add a node statement

pub fn add_attr(self, attr_type: AttrType, attr_list: AttrList<'a>) -> Self[src]

Add a global attribute

pub fn add_edge(self, edge: Edge<'a>) -> Self[src]

Add an edge statement

pub fn add_subgraph(self, sub: SubGraph<'a>) -> Self[src]

Add a subgraph statement

pub fn add_equation(self, a: Identity<'a>, b: Identity<'a>) -> Self[src]

Add an equation

Trait Implementations

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

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

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

impl<'a> IntoIterator for StmtList<'a>[src]

type Item = Stmt<'a>

The type of the elements being iterated over.

type IntoIter = IntoIter<Stmt<'a>>

Which kind of iterator are we turning this into?

Auto Trait Implementations

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

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

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

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

impl<'a> UnwindSafe for StmtList<'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.