pub struct ConformanceSelectionBoxContract {
pub input: SelectionBoxInput,
pub nodes: Vec<NodeId>,
pub edges: Vec<EdgeId>,
pub groups: Vec<GroupId>,
}Expand description
Behavior contract for applying a marquee selection box and observing selection callbacks.
Fields§
§input: SelectionBoxInput§nodes: Vec<NodeId>§edges: Vec<EdgeId>§groups: Vec<GroupId>Implementations§
Source§impl ConformanceSelectionBoxContract
impl ConformanceSelectionBoxContract
pub fn new( input: SelectionBoxInput, nodes: impl IntoIterator<Item = NodeId>, edges: impl IntoIterator<Item = EdgeId>, ) -> Self
pub fn with_groups(self, groups: impl IntoIterator<Item = GroupId>) -> Self
Trait Implementations§
Source§impl Clone for ConformanceSelectionBoxContract
impl Clone for ConformanceSelectionBoxContract
Source§fn clone(&self) -> ConformanceSelectionBoxContract
fn clone(&self) -> ConformanceSelectionBoxContract
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 ConformanceSelectionBoxContract
impl<'de> Deserialize<'de> for ConformanceSelectionBoxContract
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 ConformanceSelectionBoxContract
impl PartialEq for ConformanceSelectionBoxContract
Source§fn eq(&self, other: &ConformanceSelectionBoxContract) -> bool
fn eq(&self, other: &ConformanceSelectionBoxContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConformanceSelectionBoxContract
Auto Trait Implementations§
impl Freeze for ConformanceSelectionBoxContract
impl RefUnwindSafe for ConformanceSelectionBoxContract
impl Send for ConformanceSelectionBoxContract
impl Sync for ConformanceSelectionBoxContract
impl Unpin for ConformanceSelectionBoxContract
impl UnsafeUnpin for ConformanceSelectionBoxContract
impl UnwindSafe for ConformanceSelectionBoxContract
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