pub enum NodePin<TI: NodeTypeInfo> {
Execute {
name: String,
subscope: bool,
},
Parameter {
name: String,
type_info: TI,
},
Property {
name: String,
},
}
Variants§
Implementations§
Source§impl<TI: NodeTypeInfo> NodePin<TI>
impl<TI: NodeTypeInfo> NodePin<TI>
pub fn execute(name: impl ToString, subscope: bool) -> Self
pub fn parameter(name: impl ToString, type_info: TI) -> Self
pub fn property(name: impl ToString) -> Self
pub fn is_execute(&self) -> bool
pub fn is_parameter(&self) -> bool
pub fn is_property(&self) -> bool
pub fn name(&self) -> &str
pub fn has_subscope(&self) -> bool
pub fn type_info(&self) -> Option<&TI>
Trait Implementations§
Source§impl<'de, TI> Deserialize<'de> for NodePin<TI>where
TI: NodeTypeInfo,
impl<'de, TI> Deserialize<'de> for NodePin<TI>where
TI: NodeTypeInfo,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<TI> Serialize for NodePin<TI>where
TI: NodeTypeInfo,
impl<TI> Serialize for NodePin<TI>where
TI: NodeTypeInfo,
impl<TI: NodeTypeInfo> StructuralPartialEq for NodePin<TI>
Auto Trait Implementations§
impl<TI> Freeze for NodePin<TI>where
TI: Freeze,
impl<TI> RefUnwindSafe for NodePin<TI>where
TI: RefUnwindSafe,
impl<TI> Send for NodePin<TI>where
TI: Send,
impl<TI> Sync for NodePin<TI>where
TI: Sync,
impl<TI> Unpin for NodePin<TI>where
TI: Unpin,
impl<TI> UnwindSafe for NodePin<TI>where
TI: UnwindSafe,
Blanket Implementations§
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