[−][src]Struct tabbycat::StmtList
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]
self,
id: Identity<'a>,
port: Option<Port<'a>>,
attr: Option<AttrList<'a>>
) -> Self
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,