pub struct StmtList(/* private fields */);Expand description
The list of statements, including:
- node declaration
- edge declaration
- subgraph declaration
- global attributes
Implementations§
Source§impl StmtList
impl StmtList
Sourcepub fn extend<I: IntoIterator<Item = Stmt>>(self, iter: I) -> Self
pub fn extend<I: IntoIterator<Item = Stmt>>(self, iter: I) -> Self
Append a list a statements
Sourcepub fn add_node(
self,
id: Identity,
port: Option<Port>,
attr: Option<AttrList>,
) -> Self
pub fn add_node( self, id: Identity, port: Option<Port>, attr: Option<AttrList>, ) -> Self
Add a node statement
Sourcepub fn add_subgraph(self, sub: SubGraph) -> Self
pub fn add_subgraph(self, sub: SubGraph) -> Self
Add a subgraph statement
Sourcepub fn add_equation(self, a: Identity, b: Identity) -> Self
pub fn add_equation(self, a: Identity, b: Identity) -> Self
Add an equation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StmtList
impl RefUnwindSafe for StmtList
impl Send for StmtList
impl Sync for StmtList
impl Unpin for StmtList
impl UnwindSafe for StmtList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more