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

The unique identifier for the node.

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: Clone> Clone for NodeSocket<NI>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<NI: Debug> Debug for NodeSocket<NI>
[src]

Formats the value using the given formatter. Read more

impl<NI: PartialEq> PartialEq for NodeSocket<NI>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<NI: Eq> Eq for NodeSocket<NI>
[src]

impl<NI: Hash> Hash for NodeSocket<NI>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<NI> Send for NodeSocket<NI> where
    NI: Send

impl<NI> Sync for NodeSocket<NI> where
    NI: Sync