Struct nannou::ui::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
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V