pub struct Link {
pub start_node: NodeId,
pub end_node: NodeId,
pub start_pin: OutputPinId,
pub end_pin: InputPinId,
pub created_from_snap: bool,
}
Expand description
Represents a link successfully created by the user in the current frame.
Obtained from OuterScope::links_created(). Contains the start and end pins as well as the start and end nodes involved in the link creation.
Fields§
§start_node: NodeId
The ID of the node where the link started.
end_node: NodeId
The ID of the node where the link ended.
start_pin: OutputPinId
The ID of the output pin where the link started.
end_pin: InputPinId
The ID of the input pin where the link ended.
created_from_snap: bool
Flag indicating if the link was created by snapping to a pin node when AttributeFlags::EnableLinkCreationOnSnap is enabled.
Trait Implementations§
impl Copy for Link
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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