pub enum TraceResult {
Clear(Vec2),
SnappedToNode(NodeId),
SnappedToEdge {
edge_id: EdgeId,
intersection_pos: Vec2,
},
}Expand description
Result of evaluating a proposed trace step against the existing graph.
Variants§
Clear(Vec2)
Path is clear — create a new node at this position.
SnappedToNode(NodeId)
Landed near an existing intersection — snap to it.
SnappedToEdge
Hit or landed near an existing edge — split it to form an intersection.
Auto Trait Implementations§
impl Freeze for TraceResult
impl RefUnwindSafe for TraceResult
impl Send for TraceResult
impl Sync for TraceResult
impl Unpin for TraceResult
impl UnsafeUnpin for TraceResult
impl UnwindSafe for TraceResult
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