pub struct Graph { /* private fields */ }Implementations§
Source§impl Graph
impl Graph
pub fn new(name: &str) -> Self
pub fn add_node(&mut self, node: Node)
pub fn add_edge(&mut self, source: &str, target: &str)
pub fn add_subgraph(&mut self, subgraph: Subgraph)
pub fn set_name(&mut self, name: &str)
pub fn add_node_style(&mut self, style: &str)
pub fn add_edge_with_style( &mut self, source: &str, target: &str, style: Vec<String>, )
pub fn use_default_style(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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