pub struct Graph<'a> {
pub directed: bool,
pub name: String,
pub stmts: Vec<&'a dyn Stmt>,
pub node_attributes: Vec<(String, String)>,
pub edge_attributes: Vec<(String, String)>,
pub graph_attributes: Vec<(String, String)>,
}Fields§
§directed: bool§name: String§stmts: Vec<&'a dyn Stmt>§node_attributes: Vec<(String, String)>§edge_attributes: Vec<(String, String)>§graph_attributes: Vec<(String, String)>Implementations§
Source§impl<'a> Graph<'a>
impl<'a> Graph<'a>
pub fn with_node_attribute(self, key: &str, value: &str) -> Self
pub fn with_edge_attribute(self, key: &str, value: &str) -> Self
pub fn with_graph_attribute(self, key: &str, value: &str) -> Self
pub fn add_stmt(self, stmt: &'a dyn Stmt) -> Self
pub fn draw(self, path_name: &str)
Auto Trait Implementations§
impl<'a> Freeze for Graph<'a>
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§
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