[][src]Struct conrod_core::widget::graph::NodeSocket

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

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

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

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

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

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

impl<NI> StructuralEq for NodeSocket<NI>[src]

impl<NI> StructuralPartialEq for NodeSocket<NI>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NodeId for T where
    T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send
[src]

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.