pub struct ConnectionHandleIndicatorInput {
pub handle: ConnectionHandleRef,
pub from: Option<ConnectionHandleRef>,
pub to: Option<ConnectionHandleRef>,
pub click_start: Option<ConnectionHandleRef>,
pub mode: NodeGraphConnectionMode,
pub target_feedback: ConnectionHandleValidity,
pub connectable: bool,
pub connectable_start: bool,
pub connectable_end: bool,
}Expand description
Input for resolving XyFlow-style handle interaction indicator state.
Fields§
§handle: ConnectionHandleRef§from: Option<ConnectionHandleRef>§to: Option<ConnectionHandleRef>§click_start: Option<ConnectionHandleRef>§mode: NodeGraphConnectionMode§target_feedback: ConnectionHandleValidity§connectable: bool§connectable_start: bool§connectable_end: boolImplementations§
Source§impl ConnectionHandleIndicatorInput
impl ConnectionHandleIndicatorInput
pub fn new(handle: ConnectionHandleRef, mode: NodeGraphConnectionMode) -> Self
pub fn with_connection( self, from: Option<ConnectionHandleRef>, to: Option<ConnectionHandleRef>, target_feedback: ConnectionHandleValidity, ) -> Self
pub fn with_click_start(self, click_start: Option<ConnectionHandleRef>) -> Self
pub fn with_connectability( self, connectable: bool, connectable_start: bool, connectable_end: bool, ) -> Self
Trait Implementations§
Source§impl Clone for ConnectionHandleIndicatorInput
impl Clone for ConnectionHandleIndicatorInput
Source§fn clone(&self) -> ConnectionHandleIndicatorInput
fn clone(&self) -> ConnectionHandleIndicatorInput
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 ConnectionHandleIndicatorInput
impl Eq for ConnectionHandleIndicatorInput
Source§impl PartialEq for ConnectionHandleIndicatorInput
impl PartialEq for ConnectionHandleIndicatorInput
Source§fn eq(&self, other: &ConnectionHandleIndicatorInput) -> bool
fn eq(&self, other: &ConnectionHandleIndicatorInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectionHandleIndicatorInput
Auto Trait Implementations§
impl Freeze for ConnectionHandleIndicatorInput
impl RefUnwindSafe for ConnectionHandleIndicatorInput
impl Send for ConnectionHandleIndicatorInput
impl Sync for ConnectionHandleIndicatorInput
impl Unpin for ConnectionHandleIndicatorInput
impl UnsafeUnpin for ConnectionHandleIndicatorInput
impl UnwindSafe for ConnectionHandleIndicatorInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.