pub struct FloatNode {
pub value: f32,
pub out: OutputTyped<f32, { 0 }>,
}
Expand description
A constant float value.
Fields§
§value: f32
§out: OutputTyped<f32, { 0 }>
Output.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FloatNode
impl<'de> Deserialize<'de> for FloatNode
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 FloatNode
impl NodeImpl for FloatNode
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 FloatNode
impl RefUnwindSafe for FloatNode
impl Send for FloatNode
impl Sync for FloatNode
impl Unpin for FloatNode
impl UnwindSafe for FloatNode
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