Struct conrod_core::widget::graph::NodeSocket [−][src]
pub struct NodeSocket<NI> { pub id: NI, pub socket_index: usize, }
Expand description
Represents a socket connection on a node.
Assumed to be either an input or output socket based on its usage within a tuple. E.g. given
two sockets (a, b), socket a’s socket_index
refers its index within a
’s output
socket list, while b’s refers its index within b
’s input socket list.
Fields
id: NI
The unique identifier for the node.
socket_index: usize
The index of the socket on one side of the node.
E.g. if the socket is the 3rd output socket, index would be 2
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<NI> RefUnwindSafe for NodeSocket<NI> where
NI: RefUnwindSafe,
impl<NI> Send for NodeSocket<NI> where
NI: Send,
impl<NI> Sync for NodeSocket<NI> where
NI: Sync,
impl<NI> Unpin for NodeSocket<NI> where
NI: Unpin,
impl<NI> UnwindSafe for NodeSocket<NI> where
NI: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more