pub struct ConnectEnd {
pub point: Point,
pub connection: Option<Connection>,
}Expand description
How a connection gesture ended, whatever it ended on. Passed to
on_connect_end; connection is None when the drag was released over
nothing — the hook for “drop on empty canvas to create a node there”.
Fields§
§point: PointWhere the pointer let go, in flow coordinates.
connection: Option<Connection>The connection that completed, if the release was on (or snapped to) a compatible handle.
Trait Implementations§
Source§impl Clone for ConnectEnd
impl Clone for ConnectEnd
Source§impl Debug for ConnectEnd
impl Debug for ConnectEnd
Source§impl PartialEq for ConnectEnd
impl PartialEq for ConnectEnd
impl StructuralPartialEq for ConnectEnd
Auto Trait Implementations§
impl Freeze for ConnectEnd
impl RefUnwindSafe for ConnectEnd
impl Send for ConnectEnd
impl Sync for ConnectEnd
impl Unpin for ConnectEnd
impl UnsafeUnpin for ConnectEnd
impl UnwindSafe for ConnectEnd
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> DependencyElement for T
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.