2023-01-02から1日間の記事一覧
Rc,RefCellを使用しない方法 smallcultfollowing.com struct Graph { nodes: Vec<NodeData>, edges: Vec<EdgeData> } type EdgeIndex = usize; type NodeIndex = usize; struct NodeIndex { firest_outgoing_edge: Option<EdgeIndex> } struct EdgeIndex { target: NodeIndex, next_outgoing</edgeindex></edgedata></nodedata>…