pub struct NodeDragSession {
pub node: NodeId,
pub start: CanvasPoint,
pub to: CanvasPoint,
}Expand description
One headless node-drag session from pointer start to final pointer update.
Fields§
§node: NodeId§start: CanvasPoint§to: CanvasPointImplementations§
Source§impl NodeDragSession
impl NodeDragSession
pub fn new(node: NodeId, start: CanvasPoint, to: CanvasPoint) -> Self
Trait Implementations§
Source§impl Clone for NodeDragSession
impl Clone for NodeDragSession
Source§fn clone(&self) -> NodeDragSession
fn clone(&self) -> NodeDragSession
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 NodeDragSession
Source§impl Debug for NodeDragSession
impl Debug for NodeDragSession
Source§impl<'de> Deserialize<'de> for NodeDragSession
impl<'de> Deserialize<'de> for NodeDragSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeDragSession
impl PartialEq for NodeDragSession
Source§fn eq(&self, other: &NodeDragSession) -> bool
fn eq(&self, other: &NodeDragSession) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeDragSession
impl Serialize for NodeDragSession
impl StructuralPartialEq for NodeDragSession
Auto Trait Implementations§
impl Freeze for NodeDragSession
impl RefUnwindSafe for NodeDragSession
impl Send for NodeDragSession
impl Sync for NodeDragSession
impl Unpin for NodeDragSession
impl UnsafeUnpin for NodeDragSession
impl UnwindSafe for NodeDragSession
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