Struct conrod::widget::graph::NodeSocket [−][src]
pub struct NodeSocket<NI> { pub id: NI, pub socket_index: usize, }
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
impl<NI: Copy> Copy for NodeSocket<NI>
[src]
impl<NI: Copy> Copy for NodeSocket<NI>
impl<NI: Clone> Clone for NodeSocket<NI>
[src]
impl<NI: Clone> Clone for NodeSocket<NI>
fn clone(&self) -> NodeSocket<NI>
[src]
fn clone(&self) -> NodeSocket<NI>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<NI: Debug> Debug for NodeSocket<NI>
[src]
impl<NI: Debug> Debug for NodeSocket<NI>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<NI: PartialEq> PartialEq for NodeSocket<NI>
[src]
impl<NI: PartialEq> PartialEq for NodeSocket<NI>
fn eq(&self, other: &NodeSocket<NI>) -> bool
[src]
fn eq(&self, other: &NodeSocket<NI>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NodeSocket<NI>) -> bool
[src]
fn ne(&self, other: &NodeSocket<NI>) -> bool
This method tests for !=
.
impl<NI: Eq> Eq for NodeSocket<NI>
[src]
impl<NI: Eq> Eq for NodeSocket<NI>
impl<NI: Hash> Hash for NodeSocket<NI>
[src]
impl<NI: Hash> Hash for NodeSocket<NI>
Auto Trait Implementations
impl<NI> Send for NodeSocket<NI> where
NI: Send,
impl<NI> Send for NodeSocket<NI> where
NI: Send,
impl<NI> Sync for NodeSocket<NI> where
NI: Sync,
impl<NI> Sync for NodeSocket<NI> where
NI: Sync,