pub struct NodeGraph {
pub nodes: Vec<(String, Node)>,
}Expand description
nodes = { name = { ... }; ... }
Fields§
§nodes: Vec<(String, Node)>Insertion order preserved (BTreeMap would reorder alphabetically,
which is fine for lookup but wrong for any diagnostic that lists
nodes “in the order the author wrote them”).
Implementations§
Trait Implementations§
impl StructuralPartialEq for NodeGraph
Auto Trait Implementations§
impl Freeze for NodeGraph
impl RefUnwindSafe for NodeGraph
impl Send for NodeGraph
impl Sync for NodeGraph
impl Unpin for NodeGraph
impl UnsafeUnpin for NodeGraph
impl UnwindSafe for NodeGraph
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