pub struct Vec2Node {
pub value: Vec2,
pub out: OutputTyped<Vec2, { 0 }>,
}Expand description
A constant Vec2 value.
Fields§
§value: Vec2§out: OutputTyped<Vec2, { 0 }>Output.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vec2Node
impl<'de> Deserialize<'de> for Vec2Node
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 NodeImpl for Vec2Node
impl NodeImpl for Vec2Node
fn clone_node(&self) -> Box<dyn NodeImpl>
fn def(&self) -> &NodeDefinition
fn get_node_input(&self, key: &InputKey) -> Result<Input>
fn set_node_input( &mut self, key: &InputKey, _value: Input, ) -> Result<Option<OutputId>>
fn get_param(&self, name: &str) -> Result<ParameterValue>
fn set_param(&mut self, name: &str, _value: ParameterValue) -> Result<()>
fn inputs_ui( &mut self, _concrete_type: &mut NodeConcreteType, _ui: &mut Ui, _id: NodeId, _details: bool, ) -> bool
fn outputs_ui( &mut self, _concrete_type: &mut NodeConcreteType, _ui: &mut Ui, _id: NodeId, _details: bool, ) -> bool
fn parameters_ui( &mut self, _concrete_type: &mut NodeConcreteType, _ui: &mut Ui, _id: NodeId, _details: bool, ) -> bool
fn compile( &self, _graph: &NodeGraph, compile: &mut NodeGraphCompile, id: NodeId, ) -> Result<()>
fn cache_output(&self) -> bool
fn get_input_idx(&self, key: &InputKey) -> Result<u32>
fn eval( &self, _graph: &NodeGraph, _execution: &mut NodeGraphExecution, _id: NodeId, ) -> Result<Value>
fn details_ui(&mut self, ui: &mut Ui, id: NodeId) -> bool
fn node_ui(&mut self, ui: &mut Ui, id: NodeId) -> bool
fn ui(&mut self, ui: &mut Ui, id: NodeId, details: bool) -> bool
Auto Trait Implementations§
impl Freeze for Vec2Node
impl RefUnwindSafe for Vec2Node
impl Send for Vec2Node
impl Sync for Vec2Node
impl Unpin for Vec2Node
impl UnsafeUnpin for Vec2Node
impl UnwindSafe for Vec2Node
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