pub enum PathElem {
Node(Node),
Edge(Edge),
}Expand description
One element of a Value::Path — a path is node, edge, node, edge, ..., node, alternating, as a single Vec, not two parallel node/edge
vecs (which would create an unenforced nodes.len() == edges.len() + 1 invariant across every place a path gets built or read).
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathElem
impl RefUnwindSafe for PathElem
impl Send for PathElem
impl Sync for PathElem
impl Unpin for PathElem
impl UnsafeUnpin for PathElem
impl UnwindSafe for PathElem
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