Struct nannou::ui::prelude::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> Hash for NodeSocket<NI> where
    NI: Hash
[src]

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

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

impl<NI> Clone for NodeSocket<NI> where
    NI: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<NI> Copy for NodeSocket<NI> where
    NI: Copy
[src]

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

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

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> Send for NodeSocket<NI> where
    NI: Send

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