Struct graphviz_dot_parser::types::GraphAST
source · pub struct GraphAST {
pub is_strict: bool,
pub is_directed: bool,
pub id: Option<String>,
pub stmt: Vec<Stmt>,
}
Fields§
§is_strict: bool
§is_directed: bool
§id: Option<String>
§stmt: Vec<Stmt>
Implementations§
source§impl GraphAST
impl GraphAST
pub fn to_directed_graph_using<N, E>( &self, new_node: &dyn Fn(&String, &Attributes) -> N, new_edge: &dyn Fn(&Attributes) -> E ) -> Option<Graph<N, E>>
pub fn to_undirected_graph_using<N, E>( &self, new_node: &dyn Fn(&String, &Attributes) -> N, new_edge: &dyn Fn(&Attributes) -> E ) -> Option<Graph<N, E, Undirected>>
pub fn to_directed_graph(&self) -> Option<Graph<String, ()>>
pub fn to_undirected_graph(&self) -> Option<Graph<String, (), Undirected>>
Auto Trait Implementations§
impl RefUnwindSafe for GraphAST
impl Send for GraphAST
impl Sync for GraphAST
impl Unpin for GraphAST
impl UnwindSafe for GraphAST
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