pub enum EdgeEvent<NI> {
AddStart(NodeSocket<NI>),
Add {
start: NodeSocket<NI>,
end: NodeSocket<NI>,
},
Cancelled(NodeSocket<NI>),
Remove {
start: NodeSocket<NI>,
end: NodeSocket<NI>,
},
}Expand description
Events related to adding and removing edges.
Variants§
AddStart(NodeSocket<NI>)
The user has pressed the given node socket with the left mouse button to begin creating an edge.
Add
The user has attempted to create an edge between the two given node sockets.
Cancelled(NodeSocket<NI>)
The user has cancelled creating an edge from the given socket.
Remove
The user has attempted to remove the edge connecting the two given sockets.
Trait Implementations§
impl<NI: Copy> Copy for EdgeEvent<NI>
impl<NI: Eq> Eq for EdgeEvent<NI>
impl<NI: PartialEq> StructuralPartialEq for EdgeEvent<NI>
Auto Trait Implementations§
impl<NI> Freeze for EdgeEvent<NI>where
NI: Freeze,
impl<NI> RefUnwindSafe for EdgeEvent<NI>where
NI: RefUnwindSafe,
impl<NI> Send for EdgeEvent<NI>where
NI: Send,
impl<NI> Sync for EdgeEvent<NI>where
NI: Sync,
impl<NI> Unpin for EdgeEvent<NI>where
NI: Unpin,
impl<NI> UnsafeUnpin for EdgeEvent<NI>where
NI: UnsafeUnpin,
impl<NI> UnwindSafe for EdgeEvent<NI>where
NI: UnwindSafe,
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