struct ModuleGraphData {
struct_clusters: HashMap<String, HashSet<NodeType>>,
edges: HashSet<(DefId, DefId, UigEdge)>,
node_styles: HashMap<DefId, String>,
}Expand description
Holds graph data for a single module before DOT generation.
Fields§
§struct_clusters: HashMap<String, HashSet<NodeType>>§edges: HashSet<(DefId, DefId, UigEdge)>§node_styles: HashMap<DefId, String>Implementations§
Source§impl ModuleGraphData
impl ModuleGraphData
fn new() -> Self
fn add_node(&mut self, tcx: TyCtxt<'_>, node: NodeType)
fn add_edge(&mut self, from: DefId, to: DefId, edge_type: UigEdge)
fn get_struct_group_name(&self, tcx: TyCtxt<'_>, def_id: DefId) -> String
fn node_to_dot_attr(&self, _tcx: TyCtxt<'_>, node: &UigNode) -> String
fn generate_dot_string(&self, module_name: &str) -> String
Auto Trait Implementations§
impl Freeze for ModuleGraphData
impl RefUnwindSafe for ModuleGraphData
impl Send for ModuleGraphData
impl Sync for ModuleGraphData
impl Unpin for ModuleGraphData
impl UnwindSafe for ModuleGraphData
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