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: NIThe unique identifier for the node.
socket_index: usizeThe 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§
Source§impl<NI> Clone for NodeSocket<NI>where
NI: Clone,
impl<NI> Clone for NodeSocket<NI>where
NI: Clone,
Source§fn clone(&self) -> NodeSocket<NI>
fn clone(&self) -> NodeSocket<NI>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<NI> Debug for NodeSocket<NI>where
NI: Debug,
impl<NI> Debug for NodeSocket<NI>where
NI: Debug,
Source§impl<NI> Hash for NodeSocket<NI>where
NI: Hash,
impl<NI> Hash for NodeSocket<NI>where
NI: Hash,
Source§impl<NI> PartialEq for NodeSocket<NI>where
NI: PartialEq,
impl<NI> PartialEq for NodeSocket<NI>where
NI: PartialEq,
impl<NI> Copy for NodeSocket<NI>where
NI: Copy,
impl<NI> Eq for NodeSocket<NI>where
NI: Eq,
impl<NI> StructuralPartialEq for NodeSocket<NI>
Auto Trait Implementations§
impl<NI> Freeze for NodeSocket<NI>where
NI: Freeze,
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§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
Source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
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 moreSource§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more