pub struct NodeDragItem {
pub node: NodeId,
pub from: CanvasPoint,
pub to: CanvasPoint,
}Expand description
One node movement inside a drag plan.
Fields§
§node: NodeIdNode being moved.
from: CanvasPointCurrent node position.
to: CanvasPointTarget node position.
Trait Implementations§
Source§impl Clone for NodeDragItem
impl Clone for NodeDragItem
Source§fn clone(&self) -> NodeDragItem
fn clone(&self) -> NodeDragItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeDragItem
Source§impl Debug for NodeDragItem
impl Debug for NodeDragItem
Source§impl PartialEq for NodeDragItem
impl PartialEq for NodeDragItem
Source§fn eq(&self, other: &NodeDragItem) -> bool
fn eq(&self, other: &NodeDragItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeDragItem
Auto Trait Implementations§
impl Freeze for NodeDragItem
impl RefUnwindSafe for NodeDragItem
impl Send for NodeDragItem
impl Sync for NodeDragItem
impl Unpin for NodeDragItem
impl UnsafeUnpin for NodeDragItem
impl UnwindSafe for NodeDragItem
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