pub struct ConformanceNodeDragSessionContract {
pub primary: NodeId,
pub nodes: Vec<NodeId>,
pub start: CanvasPoint,
pub to: CanvasPoint,
pub commit_op_kinds: Vec<String>,
}Expand description
Behavior contract for a committed node drag session.
Fields§
§primary: NodeId§nodes: Vec<NodeId>§start: CanvasPoint§to: CanvasPoint§commit_op_kinds: Vec<String>Implementations§
Source§impl ConformanceNodeDragSessionContract
impl ConformanceNodeDragSessionContract
pub fn new(primary: NodeId, start: CanvasPoint, to: CanvasPoint) -> Self
pub fn with_nodes(self, nodes: impl IntoIterator<Item = NodeId>) -> Self
pub fn with_commit_op_kinds( self, op_kinds: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Trait Implementations§
Source§impl Clone for ConformanceNodeDragSessionContract
impl Clone for ConformanceNodeDragSessionContract
Source§fn clone(&self) -> ConformanceNodeDragSessionContract
fn clone(&self) -> ConformanceNodeDragSessionContract
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 moreSource§impl<'de> Deserialize<'de> for ConformanceNodeDragSessionContract
impl<'de> Deserialize<'de> for ConformanceNodeDragSessionContract
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 ConformanceNodeDragSessionContract
impl PartialEq for ConformanceNodeDragSessionContract
Source§fn eq(&self, other: &ConformanceNodeDragSessionContract) -> bool
fn eq(&self, other: &ConformanceNodeDragSessionContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConformanceNodeDragSessionContract
Auto Trait Implementations§
impl Freeze for ConformanceNodeDragSessionContract
impl RefUnwindSafe for ConformanceNodeDragSessionContract
impl Send for ConformanceNodeDragSessionContract
impl Sync for ConformanceNodeDragSessionContract
impl Unpin for ConformanceNodeDragSessionContract
impl UnsafeUnpin for ConformanceNodeDragSessionContract
impl UnwindSafe for ConformanceNodeDragSessionContract
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