pub struct ConnectionTargetInput {
pub from: ConnectionHandleRef,
pub target: Option<ConnectionTargetHandle>,
pub mode: NodeGraphConnectionMode,
pub is_inside_connection_radius: bool,
pub is_valid_connection: bool,
}Expand description
Input for resolving whether a target handle can complete a connection gesture.
Fields§
§from: ConnectionHandleRef§target: Option<ConnectionTargetHandle>§mode: NodeGraphConnectionMode§is_inside_connection_radius: bool§is_valid_connection: boolImplementations§
Source§impl ConnectionTargetInput
impl ConnectionTargetInput
pub fn new( from: ConnectionHandleRef, target: Option<ConnectionTargetHandle>, mode: NodeGraphConnectionMode, is_inside_connection_radius: bool, ) -> Self
pub fn with_connection_validity(self, is_valid_connection: bool) -> Self
Trait Implementations§
Source§impl Clone for ConnectionTargetInput
impl Clone for ConnectionTargetInput
Source§fn clone(&self) -> ConnectionTargetInput
fn clone(&self) -> ConnectionTargetInput
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 ConnectionTargetInput
Source§impl Debug for ConnectionTargetInput
impl Debug for ConnectionTargetInput
Source§impl<'de> Deserialize<'de> for ConnectionTargetInput
impl<'de> Deserialize<'de> for ConnectionTargetInput
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
impl Eq for ConnectionTargetInput
Source§impl Hash for ConnectionTargetInput
impl Hash for ConnectionTargetInput
Source§impl PartialEq for ConnectionTargetInput
impl PartialEq for ConnectionTargetInput
Source§fn eq(&self, other: &ConnectionTargetInput) -> bool
fn eq(&self, other: &ConnectionTargetInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConnectionTargetInput
impl Serialize for ConnectionTargetInput
impl StructuralPartialEq for ConnectionTargetInput
Auto Trait Implementations§
impl Freeze for ConnectionTargetInput
impl RefUnwindSafe for ConnectionTargetInput
impl Send for ConnectionTargetInput
impl Sync for ConnectionTargetInput
impl Unpin for ConnectionTargetInput
impl UnsafeUnpin for ConnectionTargetInput
impl UnwindSafe for ConnectionTargetInput
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.