pub enum NodeEvent<NI> {
Remove(NI),
Dragged {
node_id: NI,
from: Point,
to: Point,
},
}Expand description
Events related to adding and removing nodes.
Variants§
Remove(NI)
The user attempted to remove the node with the given identifier.
Dragged
The widget used to represent this Node has been dragged.
Trait Implementations§
impl<NI: Copy> Copy for NodeEvent<NI>
impl<NI> StructuralPartialEq for NodeEvent<NI>
Auto Trait Implementations§
impl<NI> Freeze for NodeEvent<NI>where
NI: Freeze,
impl<NI> RefUnwindSafe for NodeEvent<NI>where
NI: RefUnwindSafe,
impl<NI> Send for NodeEvent<NI>where
NI: Send,
impl<NI> Sync for NodeEvent<NI>where
NI: Sync,
impl<NI> Unpin for NodeEvent<NI>where
NI: Unpin,
impl<NI> UnwindSafe for NodeEvent<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